This commit is contained in:
Daniel Wallace 2014-08-21 19:37:07 -05:00
parent 6e27715028
commit 1b96e9f17c

View File

@ -41,7 +41,11 @@ Module for handling OpenStack Nova calls
import logging import logging
# Import salt libs # 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 # Get logging started
@ -58,7 +62,7 @@ def __virtual__():
Only load this module if nova Only load this module if nova
is installed on this minion. is installed on this minion.
''' '''
return suon.check_nova() return HAS_NOVA
__opts__ = {} __opts__ = {}