Merge pull request #5079 from hulu/grub-conf-shadowing

grub_legacy: refactor to avoid shadowing conf() function
This commit is contained in:
Joseph Hall 2013-05-16 18:50:20 -07:00
commit 1013ed3ea8

View File

@ -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