From 959d2c33d6c42ad3240cfac20278be3b0bd98cbb Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 30 Oct 2012 17:00:12 -0400 Subject: [PATCH] pep8 fixes for nova-manage nova-manage is now getting pep8 scanned, so these fixes are needed to make things happy. Change-Id: I68b1d17fc06c2b2580907eb950b6087e499d65f9 --- bin/nova-manage | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/nova-manage b/bin/nova-manage index 9194ff49317f..93b079488660 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='', 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!')