mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Check for existance of git-python before checking it's version attribute
This commit is contained in:
parent
4ea70b9b85
commit
6019d0ca01
@ -38,12 +38,12 @@ def __virtual__():
|
||||
return False
|
||||
if not 'git' in __opts__['fileserver_backend']:
|
||||
return False
|
||||
if not git.__version__ > '0.3.0':
|
||||
return False
|
||||
if not HAS_GIT:
|
||||
log.error('Git fileserver backend is enabled in configuration but '
|
||||
'could not be loaded, is git-python installed?')
|
||||
return False
|
||||
if not git.__version__ > '0.3.0':
|
||||
return False
|
||||
return 'git'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user