longer zone list
This commit is contained in:
parent
82227aa77f
commit
db357e580d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user