Merge "Avoid string interpolation in logging calls"

This commit is contained in:
Jenkins 2016-11-04 17:46:57 +00:00 committed by Gerrit Code Review
commit f7a3f8febe
4 changed files with 8 additions and 8 deletions

View File

@ -151,7 +151,7 @@ class ListBaremetalChassis(command.Lister):
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.debug("take_action(%s)", parsed_args)
client = self.app.client_manager.baremetal
columns = res_fields.CHASSIS_RESOURCE.fields
@ -176,7 +176,7 @@ class ListBaremetalChassis(command.Lister):
labels = resource.labels
params['fields'] = columns
self.log.debug("params(%s)" % params)
self.log.debug("params(%s)", params)
data = client.chassis.list(**params)
data = oscutils.sort_items(data, parsed_args.sort)

View File

@ -34,7 +34,7 @@ class ListBaremetalDriver(command.Lister):
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.debug("take_action(%s)", parsed_args)
client = self.app.client_manager.baremetal
labels = ['Supported driver(s)', 'Active host(s)']

View File

@ -483,7 +483,7 @@ class ListBaremetalNode(command.Lister):
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.debug("take_action(%s)", parsed_args)
client = self.app.client_manager.baremetal
columns = res_fields.NODE_RESOURCE.fields
@ -518,7 +518,7 @@ class ListBaremetalNode(command.Lister):
labels = resource.labels
params['fields'] = columns
self.log.debug("params(%s)" % params)
self.log.debug("params(%s)", params)
data = client.node.list(**params)
data = oscutils.sort_items(data, parsed_args.sort)

View File

@ -77,7 +77,7 @@ class CreateBaremetalPort(command.ShowOne):
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.debug("take_action(%s)", parsed_args)
baremetal_client = self.app.client_manager.baremetal
if parsed_args.local_link_connection_deprecated:
@ -341,7 +341,7 @@ class ListBaremetalPort(command.Lister):
return parser
def take_action(self, parsed_args):
self.log.debug("take_action(%s)" % parsed_args)
self.log.debug("take_action(%s)", parsed_args)
client = self.app.client_manager.baremetal
columns = res_fields.PORT_RESOURCE.fields
@ -373,7 +373,7 @@ class ListBaremetalPort(command.Lister):
labels = resource.labels
params['fields'] = columns
self.log.debug("params(%s)" % params)
self.log.debug("params(%s)", params)
data = client.port.list(**params)
data = oscutils.sort_items(data, parsed_args.sort)