示例#1
0
文件: nova.py 项目: cldeluna/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.')
示例#2
0
文件: nova.py 项目: zhangxc73912/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)
示例#3
0
文件: nova.py 项目: vpsfreecz/salt
def __virtual__():
    '''
    Only load this module if nova
    is installed on this minion.
    '''
    if suon.check_nova():
        return 'nova'
    else:
        return False
示例#4
0
文件: nova.py 项目: 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.')
示例#5
0
文件: nova.py 项目: 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
    )
示例#6
0
文件: nova.py 项目: mahak/salt
def __virtual__():
    '''
    Only load this module if nova
    is installed on this minion.
    '''
    return suon.check_nova()
示例#7
0
def __virtual__():
    '''
    Only load this module if nova
    is installed on this minion.
    '''
    return suon.check_nova()