def get_mistral_client(self, auth_dict): if not auth_dict: LOG.warning("auth dict required to instantiate mistral client") raise EnvironmentError('auth dict required for' ' mistral workflow driver') return mistral_client.MistralClient( keystone.Keystone().initialize_client('2', **auth_dict), auth_dict['token']).get_client()
def __init__(self, auth_attr, region_name=None): super(OpenstackClients, self).__init__() self.keystone_plugin = keystone.Keystone() self.heat_client = None self.mistral_client = None self.keystone_client = None self.region_name = region_name self.auth_attr = auth_attr
def __init__(self): self.keystone = keystone.Keystone() self.keystone.create_key_dir(CONF.vim_keys.openstack)
def get_mistral_client(auth_dict): return mistral_client.MistralClient( keystone.Keystone().initialize_client('2', **auth_dict), auth_dict['token']).get_client()