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: