示例#1
0
def create_rest_client(
        manager_ip,
        username=None,
        password=None,
        tenant=None,
        **kwargs):
    return CloudifyClient(
        host=manager_ip,
        username=username or cli_env.get_username(),
        password=password or cli_env.get_password(),
        tenant=tenant or cli_env.get_tenant_name(),
        **kwargs)
示例#2
0
def get_manager_tenant():
    return cli_env.get_tenant_name()
示例#3
0
def get_manager_tenant():
    return cli_env.get_tenant_name()