コード例 #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()