From 1ca2beea3e666af0eeb6216bb860069b0805b0e6 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sun, 6 Mar 2016 01:45:14 +0000 Subject: [PATCH] It's a function! --- salt/utils/gitfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utils/gitfs.py b/salt/utils/gitfs.py index 9e20b1a8df..c0eec61a7c 100644 --- a/salt/utils/gitfs.py +++ b/salt/utils/gitfs.py @@ -916,7 +916,7 @@ class Pygit2(GitProvider): # https://github.com/libgit2/libgit2/issues/2122 if "Error stat'ing config file" not in str(exc): raise - home = pwd.getpwnam(salt.utils.get_user).pw_dir + home = pwd.getpwnam(salt.utils.get_user()).pw_dir pygit2.settings.search_path[pygit2.GIT_CONFIG_LEVEL_GLOBAL] = home self.repo = pygit2.Repository(self.cachedir) except KeyError: