Merge "Fix designate-manage pool show_config command"

This commit is contained in:
Jenkins 2015-05-28 19:45:51 +00:00 committed by Gerrit Code Review
commit ab778c7a49
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -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())