Fix PyLink C0103

This commit is contained in:
Pedro Algarvio 2013-10-04 13:30:02 +01:00
parent 5d5cbec6d3
commit bdb8b37f9e

View File

@ -26,16 +26,16 @@ from salt.states.git import _fail, _neutral_test
log = logging.getLogger(__name__)
if salt.utils.is_windows():
hg_binary = "hg.exe"
HG_BINARY = "hg.exe"
else:
hg_binary = "hg"
HG_BINARY = "hg"
def __virtual__():
'''
Only load if hg is available
'''
return 'hg' if __salt__['cmd.has_exec'](hg_binary) else False
return __salt__['cmd.has_exec'](HG_BINARY)
def latest(name,