50
50
return self.clients.client('keystone').url_for(**kwargs)
52
52
def _get_client_option(self, client, option):
53
# look for the option in the [clients_${client}] section
54
# unknown options raise cfg.NoSuchOptError
54
56
group_name = 'clients_' + client
55
57
cfg.CONF.import_opt(option, 'heat.common.config',
57
return getattr(getattr(cfg.CONF, group_name), option)
58
except (cfg.NoSuchGroupError, cfg.NoSuchOptError):
59
cfg.CONF.import_opt(option, 'heat.common.config', group='clients')
60
return getattr(cfg.CONF.clients, option)
59
v = getattr(getattr(cfg.CONF, group_name), option)
62
except cfg.NoSuchGroupError:
63
pass # do not error if the client is unknown
64
# look for the option in the generic [clients] section
65
cfg.CONF.import_opt(option, 'heat.common.config', group='clients')
66
return getattr(cfg.CONF.clients, option)
62
68
def is_client_exception(self, ex):
63
69
'''Returns True if the current exception comes from the client.'''