longer zone list

This commit is contained in:
Sandy Walsh 2011-02-17 12:09:24 -08:00
parent 82227aa77f
commit db357e580d
2 changed files with 8 additions and 1 deletions

@ -528,7 +528,8 @@ class OpenStackShell(object):
def do_zone_list(self, args):
"""List the children of a zone."""
print_list(self.cs.zones.list(), ['ID', 'API URL'])
print_list(self.cs.zones.list(), ['ID', 'Name', 'Is Active',
'Capabilities', 'API URL'])
def _find_server(self, server):
"""Get a server by name or ID."""

@ -2,6 +2,12 @@ from novatools import base
class Zone(base.Resource):
def __init__(self, manager, info):
self.name = "n/a"
self.is_active = "n/a"
self.capabilities = "n/a"
super(Zone, self).__init__(manager, info)
def __repr__(self):
return "<Zone: %s>" % self.api_url