Merge "Avoid string interpolation in logging calls"
This commit is contained in:
commit
f7a3f8febe
@ -151,7 +151,7 @@ class ListBaremetalChassis(command.Lister):
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
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
|
client = self.app.client_manager.baremetal
|
||||||
|
|
||||||
columns = res_fields.CHASSIS_RESOURCE.fields
|
columns = res_fields.CHASSIS_RESOURCE.fields
|
||||||
@ -176,7 +176,7 @@ class ListBaremetalChassis(command.Lister):
|
|||||||
labels = resource.labels
|
labels = resource.labels
|
||||||
params['fields'] = columns
|
params['fields'] = columns
|
||||||
|
|
||||||
self.log.debug("params(%s)" % params)
|
self.log.debug("params(%s)", params)
|
||||||
data = client.chassis.list(**params)
|
data = client.chassis.list(**params)
|
||||||
|
|
||||||
data = oscutils.sort_items(data, parsed_args.sort)
|
data = oscutils.sort_items(data, parsed_args.sort)
|
||||||
|
@ -34,7 +34,7 @@ class ListBaremetalDriver(command.Lister):
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
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
|
client = self.app.client_manager.baremetal
|
||||||
|
|
||||||
labels = ['Supported driver(s)', 'Active host(s)']
|
labels = ['Supported driver(s)', 'Active host(s)']
|
||||||
|
@ -483,7 +483,7 @@ class ListBaremetalNode(command.Lister):
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
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
|
client = self.app.client_manager.baremetal
|
||||||
|
|
||||||
columns = res_fields.NODE_RESOURCE.fields
|
columns = res_fields.NODE_RESOURCE.fields
|
||||||
@ -518,7 +518,7 @@ class ListBaremetalNode(command.Lister):
|
|||||||
labels = resource.labels
|
labels = resource.labels
|
||||||
params['fields'] = columns
|
params['fields'] = columns
|
||||||
|
|
||||||
self.log.debug("params(%s)" % params)
|
self.log.debug("params(%s)", params)
|
||||||
data = client.node.list(**params)
|
data = client.node.list(**params)
|
||||||
|
|
||||||
data = oscutils.sort_items(data, parsed_args.sort)
|
data = oscutils.sort_items(data, parsed_args.sort)
|
||||||
|
@ -77,7 +77,7 @@ class CreateBaremetalPort(command.ShowOne):
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
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
|
baremetal_client = self.app.client_manager.baremetal
|
||||||
|
|
||||||
if parsed_args.local_link_connection_deprecated:
|
if parsed_args.local_link_connection_deprecated:
|
||||||
@ -341,7 +341,7 @@ class ListBaremetalPort(command.Lister):
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
def take_action(self, parsed_args):
|
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
|
client = self.app.client_manager.baremetal
|
||||||
|
|
||||||
columns = res_fields.PORT_RESOURCE.fields
|
columns = res_fields.PORT_RESOURCE.fields
|
||||||
@ -373,7 +373,7 @@ class ListBaremetalPort(command.Lister):
|
|||||||
labels = resource.labels
|
labels = resource.labels
|
||||||
params['fields'] = columns
|
params['fields'] = columns
|
||||||
|
|
||||||
self.log.debug("params(%s)" % params)
|
self.log.debug("params(%s)", params)
|
||||||
data = client.port.list(**params)
|
data = client.port.list(**params)
|
||||||
|
|
||||||
data = oscutils.sort_items(data, parsed_args.sort)
|
data = oscutils.sort_items(data, parsed_args.sort)
|
||||||
|
Loading…
Reference in New Issue
Block a user