Esempio n. 1
0
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.')
Esempio n. 2
0
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)
Esempio n. 3
0
def __virtual__():
    '''
    Only load this module if nova
    is installed on this minion.
    '''
    if suon.check_nova():
        return 'nova'
    else:
        return False
Esempio n. 4
0
File: nova.py Progetto: bryson/salt
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.')
Esempio n. 5
0
File: nova.py Progetto: mahak/salt
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
    )
Esempio n. 6
0
File: nova.py Progetto: mahak/salt
def __virtual__():
    '''
    Only load this module if nova
    is installed on this minion.
    '''
    return suon.check_nova()
Esempio n. 7
0
def __virtual__():
    '''
    Only load this module if nova
    is installed on this minion.
    '''
    return suon.check_nova()