def __virtual__(): ''' Only load this module if nova is installed on this minion. ''' if suon.check_nova(): return __virtualname__ return (False, 'The nova execution module failed to load: ' 'only available if nova is installed.')
def get_dependencies(): ''' Warn if dependencies aren't met. ''' deps = { 'netaddr': HAS_NETADDR, 'python-novaclient': nova.check_nova(), } return config.check_driver_dependencies(__virtualname__, deps)
def __virtual__(): ''' Only load this module if nova is installed on this minion. ''' if suon.check_nova(): return 'nova' else: return False
def get_dependencies(): ''' Warn if dependencies aren't met. ''' deps = { 'netaddr': HAS_NETADDR, 'python-novaclient': nova.check_nova(), } return config.check_driver_dependencies( __virtualname__, deps )
def __virtual__(): ''' Only load this module if nova is installed on this minion. ''' return suon.check_nova()