当前位置: 首页>>代码示例>>Python>>正文


Python config.is_provider_configured函数代码示例

本文整理汇总了Python中salt.config.is_provider_configured函数的典型用法代码示例。如果您正苦于以下问题:Python is_provider_configured函数的具体用法?Python is_provider_configured怎么用?Python is_provider_configured使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了is_provider_configured函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_is_provider_configured_no_alias

 def test_is_provider_configured_no_alias(self):
     '''
     Tests when provider alias is not in opts
     '''
     opts = {'providers': 'test'}
     provider = 'foo:bar'
     self.assertFalse(sconfig.is_provider_configured(opts, provider))
开发者ID:HowardMei,项目名称:saltstack,代码行数:7,代码来源:config_test.py

示例2: test_is_provider_configured_no_driver

 def test_is_provider_configured_no_driver(self):
     '''
     Tests when provider driver is not in opts
     '''
     opts = {'providers': {'foo': 'baz'}}
     provider = 'foo:bar'
     self.assertFalse(sconfig.is_provider_configured(opts, provider))
开发者ID:HowardMei,项目名称:saltstack,代码行数:7,代码来源:config_test.py

示例3: test_is_provider_configured_multiple_driver_not_provider

 def test_is_provider_configured_multiple_driver_not_provider(self):
     '''
     Tests when the drive is not the same as the provider when
     searching through multiple providers
     '''
     opts = {'providers': {'foo': {'bar': {'api_key': 'baz'}}}}
     provider = 'foo'
     self.assertFalse(sconfig.is_provider_configured(opts, provider))
开发者ID:HowardMei,项目名称:saltstack,代码行数:8,代码来源:config_test.py

示例4: get_configured_provider

def get_configured_provider():
    ''' Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or __virtualname__,
        ('token',)
    )
开发者ID:iquaba,项目名称:salt,代码行数:8,代码来源:scaleway.py

示例5: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or 'pyrax'
    )
开发者ID:DavideyLee,项目名称:salt,代码行数:8,代码来源:pyrax.py

示例6: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or 'gogrid',
        ('apikey', 'sharedsecret')
    )
开发者ID:Anbcorp,项目名称:salt,代码行数:9,代码来源:gogrid.py

示例7: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or 'dimensiondata',
        ('user_id', 'key', 'region')
    )
开发者ID:HowardMei,项目名称:saltstack,代码行数:9,代码来源:dimensiondata.py

示例8: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or __virtualname__,
        ('user', 'tenant', 'identity_url', 'compute_region',)
    )
开发者ID:mahak,项目名称:salt,代码行数:9,代码来源:nova.py

示例9: get_configured_provider

def get_configured_provider():
    """
    Return the first configured instance.
    """
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or "qingcloud",
        ("access_key_id", "secret_access_key", "zone", "key_filename"),
    )
开发者ID:DaveQB,项目名称:salt,代码行数:9,代码来源:qingcloud.py

示例10: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or 'digital_ocean',
        ('api_key',)
    )
开发者ID:wikimedia,项目名称:operations-debs-salt,代码行数:9,代码来源:digital_ocean.py

示例11: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or 'aws',
        ('id', 'key', 'keyname', 'securitygroup', 'private_key')
    )
开发者ID:Anbcorp,项目名称:salt,代码行数:9,代码来源:libcloud_aws.py

示例12: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or __virtualname__,
        ('access_key_id', 'secret_access_key', 'zone', 'key_filename')
    )
开发者ID:bryson,项目名称:salt,代码行数:9,代码来源:qingcloud.py

示例13: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or __virtualname__,
        ('subscription_id', 'certificate_path',)
    )
开发者ID:MadeiraCloud,项目名称:salt,代码行数:9,代码来源:msazure.py

示例14: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or 'cloudstack',
        ('apikey', 'secretkey', 'host', 'path')
    )
开发者ID:dmyerscough,项目名称:salt,代码行数:9,代码来源:cloudstack.py

示例15: get_configured_provider

def get_configured_provider():
    '''
    Return the first configured instance.
    '''
    return config.is_provider_configured(
        __opts__,
        __active_provider_name__ or __virtualname__,
        ('username', 'password', 'datacenter_id')
    )
开发者ID:bryson,项目名称:salt,代码行数:9,代码来源:profitbricks.py


注:本文中的salt.config.is_provider_configured函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。