mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #5079 from hulu/grub-conf-shadowing
grub_legacy: refactor to avoid shadowing conf() function
This commit is contained in:
commit
1013ed3ea8
@ -14,8 +14,7 @@ def __virtual__():
|
||||
'''
|
||||
Only load the module if grub is installed
|
||||
'''
|
||||
conf = _detect_conf()
|
||||
if os.path.exists(conf):
|
||||
if os.path.exists(_detect_conf()):
|
||||
return 'grub'
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user