mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
dammit
This commit is contained in:
parent
6e27715028
commit
1b96e9f17c
@ -41,7 +41,11 @@ Module for handling OpenStack Nova calls
|
||||
import logging
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils.openstack.nova as suon
|
||||
try:
|
||||
import salt.utils.openstack.nova as suon
|
||||
HAS_NOVA = True
|
||||
except NameError as exc:
|
||||
HAS_NOVA = False
|
||||
|
||||
|
||||
# Get logging started
|
||||
@ -58,7 +62,7 @@ def __virtual__():
|
||||
Only load this module if nova
|
||||
is installed on this minion.
|
||||
'''
|
||||
return suon.check_nova()
|
||||
return HAS_NOVA
|
||||
|
||||
|
||||
__opts__ = {}
|
||||
|
Loading…
Reference in New Issue
Block a user