cleaning up boot output; upping version

This commit is contained in:
Brian Waldon 2011-08-08 11:44:41 -04:00
parent 7e5a474d0d
commit 6d1361c9f4
3 changed files with 18 additions and 4 deletions

View File

@ -45,9 +45,9 @@ copyright = u'Rackspace, based on work by Jacob Kaplan-Moss'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '2.5' version = '2.6'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '2.5.9' release = '2.6.1'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

View File

@ -121,7 +121,21 @@ def do_boot(cs, args):
files=files, files=files,
min_count=min_count, min_count=min_count,
max_count=max_count) max_count=max_count)
utils.print_dict(server._info)
info = server._info
flavor = info.get('flavor', {})
flavor_id = flavor.get('id', '')
info['flavor'] = _find_flavor(cs, flavor_id).name
image = info.get('image', {})
image_id = image.get('id', '')
info['image'] = _find_image(cs, image_id).name
info.pop('links', None)
info.pop('addresses', None)
utils.print_dict(info)
@utils.arg('--flavor', @utils.arg('--flavor',

View File

@ -12,7 +12,7 @@ if sys.version_info < (2, 6):
setup( setup(
name = "python-novaclient", name = "python-novaclient",
version = "2.6.0", version = "2.6.1",
description = "Client library for OpenStack Nova API", description = "Client library for OpenStack Nova API",
long_description = read('README.rst'), long_description = read('README.rst'),
url = 'https://github.com/rackspace/python-novaclient', url = 'https://github.com/rackspace/python-novaclient',