is_windows is a function, not a propery/attribute

While not fatal, this could potentially cause problems running this
test on Windows.
This commit is contained in:
Erik Johnson 2017-07-17 23:36:21 -05:00
parent a91a3f81b1
commit 14cf6ce322

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: