Merge "Fix designate-manage pool show_config command"
This commit is contained in:
commit
ab778c7a49
|
@ -67,7 +67,7 @@ class AgentPoolBackend(base.Backend):
|
|||
values = {
|
||||
'host': self.host,
|
||||
'port': self.port,
|
||||
'pool_id': '794ccc2c-d751-44fe-b57f-8894c9f5c842'
|
||||
'pool_id': CONF['service:central'].default_pool_id
|
||||
}
|
||||
nameserver = objects.PoolNameserver(**values)
|
||||
|
||||
|
|
|
@ -26,8 +26,11 @@ CONF = cfg.CONF
|
|||
|
||||
|
||||
class PoolCommands(base.Commands):
|
||||
def show_config(self):
|
||||
|
||||
@base.args('--pool_id', help='ID of the pool to be examined',
|
||||
default=CONF['service:central'].default_pool_id)
|
||||
def show_config(self, pool_id):
|
||||
print('*' * 100)
|
||||
print('Pool Configuration:')
|
||||
print('*' * 100)
|
||||
pprint.pprint(objects.Pool.from_config(CONF).to_dict())
|
||||
pprint.pprint(objects.Pool.from_config(CONF, pool_id).to_dict())
|
||||
|
|
Loading…
Reference in New Issue