mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #42353 from terminalmage/fix-git-test
is_windows is a function, not a propery/attribute
This commit is contained in:
commit
b256001760
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user