diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-10-30 22:07:50 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-10-30 22:07:50 +0000 |
commit | a94328f07257e8e21d1d54ffd47dc46bfbb3cd8d (patch) | |
tree | 1ca3c3ff647e46f97fa934e6fd72c6878ae5efdc | |
parent | 4ee5f93589168427f5168dc8198fc50f85bb9440 (diff) | |
parent | 959d2c33d6c42ad3240cfac20278be3b0bd98cbb (diff) | |
download | nova-a94328f07257e8e21d1d54ffd47dc46bfbb3cd8d.tar.gz nova-a94328f07257e8e21d1d54ffd47dc46bfbb3cd8d.tar.xz nova-a94328f07257e8e21d1d54ffd47dc46bfbb3cd8d.zip |
Merge "pep8 fixes for nova-manage"
-rwxr-xr-x | bin/nova-manage | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 9194ff493..93b079488 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -805,8 +805,8 @@ class InstanceTypeCommands(object): help='rxtx_factor') @args('--is_public', dest="is_public", metavar='<is_public>', help='Make flavor accessible to the public') - def create(self, name, memory, vcpus, root_gb, ephemeral_gb=0, flavorid=None, - swap=0, rxtx_factor=1, is_public=True): + def create(self, name, memory, vcpus, root_gb, ephemeral_gb=0, + flavorid=None, swap=0, rxtx_factor=1, is_public=True): """Creates instance types / flavors""" try: instance_types.create(name, memory, vcpus, root_gb, @@ -1133,7 +1133,8 @@ class GetLogCommands(object): if print_name == 0: print log_file + ":-" print_name = 1 - print _('Line %d : %s') % (len(lines) - index, line) + linenum = len(lines) - index + print _('Line %(linenum)d : %(line)s') % locals() if error_found == 0: print _('No errors in logfiles!') |