def heatclient(cls): data = yaml.safe_load(read_file('local-vim.yaml')) data['auth_url'] = data['auth_url'] + '/v3' domain_name = data.pop('domain_name') data['user_domain_name'] = domain_name data['project_domain_name'] = domain_name return clients.OpenstackClients(auth_attr=data).heat
def blazarclient(cls): data = cls.get_credentials() domain_name = data.pop('domain_name') data['user_domain_name'] = domain_name data['project_domain_name'] = domain_name auth_ses = clients.OpenstackClients(auth_attr=data).keystone_session args = { 'session': auth_ses, 'service_type': 'reservation', 'interface': 'public', 'region_name': 'RegionOne', } client = blazar_client.Client(**args) return client