Merge pull request #42353 from terminalmage/fix-git-test

is_windows is a function, not a propery/attribute
This commit is contained in:
Nicole Thomas 2017-07-18 08:38:50 -06:00 committed by GitHub
commit b256001760

View File

@ -41,7 +41,7 @@ def _git_version():
git_version = subprocess.Popen(
['git', '--version'],
shell=False,
close_fds=False if salt.utils.is_windows else True,
close_fds=False if salt.utils.is_windows() else True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate()[0]
except OSError: