Skip to content

Commit 3b925e9

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "replace string format arguments with function parameters"
2 parents fb65652 + 3b485de commit 3b925e9

48 files changed

Lines changed: 215 additions & 214 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎openstackclient/common/clientmanager.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_extension_modules(group):
103103
"""Add extension clients"""
104104
mod_list = []
105105
for ep in pkg_resources.iter_entry_points(group):
106-
LOG.debug('found extension %r' % ep.name)
106+
LOG.debug('found extension %r', ep.name)
107107

108108
__import__(ep.module_name)
109109
module = sys.modules[ep.module_name]

‎openstackclient/common/commandmanager.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _load_commands(self, group=None):
3737
group = self.namespace
3838
self.group_list.append(group)
3939
for ep in pkg_resources.iter_entry_points(group):
40-
LOG.debug('found command %r' % ep.name)
40+
LOG.debug('found command %r', ep.name)
4141
cmd_name = (
4242
ep.name.replace('_', ' ')
4343
if self.convert_underscores

‎openstackclient/common/limits.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_parser(self, prog_name):
5252
return parser
5353

5454
def take_action(self, parsed_args):
55-
self.log.debug('take_action(%s)' % parsed_args)
55+
self.log.debug('take_action(%s)', parsed_args)
5656

5757
compute_client = self.app.client_manager.compute
5858
volume_client = self.app.client_manager.volume

‎openstackclient/common/module.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_parser(self, prog_name):
3939
return parser
4040

4141
def take_action(self, parsed_args):
42-
self.log.debug('take_action(%s)' % parsed_args)
42+
self.log.debug('take_action(%s)', parsed_args)
4343

4444
data = {}
4545
# Get module versions

‎openstackclient/common/quota.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_parser(self, prog_name):
7979
return parser
8080

8181
def take_action(self, parsed_args):
82-
self.log.debug('take_action(%s)' % parsed_args)
82+
self.log.debug('take_action(%s)', parsed_args)
8383

8484
compute_client = self.app.client_manager.compute
8585
volume_client = self.app.client_manager.volume
@@ -148,7 +148,7 @@ def get_parser(self, prog_name):
148148
return parser
149149

150150
def take_action(self, parsed_args):
151-
self.log.debug('take_action(%s)' % parsed_args)
151+
self.log.debug('take_action(%s)', parsed_args)
152152

153153
compute_client = self.app.client_manager.compute
154154
volume_client = self.app.client_manager.volume

‎openstackclient/compute/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def make_client(instance):
3434
API_NAME,
3535
instance._api_version[API_NAME],
3636
API_VERSIONS)
37-
LOG.debug('instantiating compute client: %s' % compute_client)
37+
LOG.debug('instantiating compute client: %s', compute_client)
3838

3939
# Set client http_log_debug to True if verbosity level is high enough
4040
http_log_debug = utils.get_effective_log_level() <= logging.DEBUG

‎openstackclient/compute/v2/agent.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_parser(self, prog_name):
6060
return parser
6161

6262
def take_action(self, parsed_args):
63-
self.log.debug("take_action(%s)" % parsed_args)
63+
self.log.debug("take_action(%s)", parsed_args)
6464
compute_client = self.app.client_manager.compute
6565
args = (
6666
parsed_args.os,
@@ -88,7 +88,7 @@ def get_parser(self, prog_name):
8888
return parser
8989

9090
def take_action(self, parsed_args):
91-
self.log.debug("take_action(%s)" % parsed_args)
91+
self.log.debug("take_action(%s)", parsed_args)
9292
compute_client = self.app.client_manager.compute
9393
compute_client.agents.delete(parsed_args.id)
9494
return
@@ -108,7 +108,7 @@ def get_parser(self, prog_name):
108108
return parser
109109

110110
def take_action(self, parsed_args):
111-
self.log.debug("take_action(%s)" % parsed_args)
111+
self.log.debug("take_action(%s)", parsed_args)
112112
compute_client = self.app.client_manager.compute
113113
columns = (
114114
"Agent ID",
@@ -152,7 +152,7 @@ def get_parser(self, prog_name):
152152
return parser
153153

154154
def take_action(self, parsed_args):
155-
self.log.debug("take_action(%s)" % parsed_args)
155+
self.log.debug("take_action(%s)", parsed_args)
156156
compute_client = self.app.client_manager.compute
157157
args = (
158158
parsed_args.id,

‎openstackclient/compute/v2/aggregate.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_parser(self, prog_name):
4747
return parser
4848

4949
def take_action(self, parsed_args):
50-
self.log.debug("take_action(%s)" % parsed_args)
50+
self.log.debug("take_action(%s)", parsed_args)
5151

5252
compute_client = self.app.client_manager.compute
5353

@@ -89,7 +89,7 @@ def get_parser(self, prog_name):
8989
return parser
9090

9191
def take_action(self, parsed_args):
92-
self.log.debug("take_action(%s)" % parsed_args)
92+
self.log.debug("take_action(%s)", parsed_args)
9393

9494
compute_client = self.app.client_manager.compute
9595

@@ -124,7 +124,7 @@ def get_parser(self, prog_name):
124124
return parser
125125

126126
def take_action(self, parsed_args):
127-
self.log.debug('take_action(%s)' % parsed_args)
127+
self.log.debug('take_action(%s)', parsed_args)
128128

129129
compute_client = self.app.client_manager.compute
130130
data = utils.find_resource(
@@ -150,7 +150,7 @@ def get_parser(self, prog_name):
150150
return parser
151151

152152
def take_action(self, parsed_args):
153-
self.log.debug("take_action(%s)" % parsed_args)
153+
self.log.debug("take_action(%s)", parsed_args)
154154

155155
compute_client = self.app.client_manager.compute
156156

@@ -207,7 +207,7 @@ def get_parser(self, prog_name):
207207
return parser
208208

209209
def take_action(self, parsed_args):
210-
self.log.debug("take_action(%s)" % parsed_args)
210+
self.log.debug("take_action(%s)", parsed_args)
211211

212212
compute_client = self.app.client_manager.compute
213213

@@ -257,7 +257,7 @@ def get_parser(self, prog_name):
257257
return parser
258258

259259
def take_action(self, parsed_args):
260-
self.log.debug('take_action(%s)' % parsed_args)
260+
self.log.debug('take_action(%s)', parsed_args)
261261

262262
compute_client = self.app.client_manager.compute
263263
aggregate = utils.find_resource(
@@ -304,7 +304,7 @@ def get_parser(self, prog_name):
304304
return parser
305305

306306
def take_action(self, parsed_args):
307-
self.log.debug('take_action(%s)' % parsed_args)
307+
self.log.debug('take_action(%s)', parsed_args)
308308

309309
compute_client = self.app.client_manager.compute
310310
data = utils.find_resource(

‎openstackclient/compute/v2/console.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_parser(self, prog_name):
4848
return parser
4949

5050
def take_action(self, parsed_args):
51-
self.log.debug('take_action(%s)' % parsed_args)
51+
self.log.debug('take_action(%s)', parsed_args)
5252
compute_client = self.app.client_manager.compute
5353

5454
server = utils.find_resource(
@@ -104,7 +104,7 @@ def get_parser(self, prog_name):
104104
return parser
105105

106106
def take_action(self, parsed_args):
107-
self.log.debug('take_action(%s)' % parsed_args)
107+
self.log.debug('take_action(%s)', parsed_args)
108108
compute_client = self.app.client_manager.compute
109109
server = utils.find_resource(
110110
compute_client.servers,

‎openstackclient/compute/v2/fixedip.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_parser(self, prog_name):
4242
return parser
4343

4444
def take_action(self, parsed_args):
45-
self.log.debug("take_action(%s)" % parsed_args)
45+
self.log.debug("take_action(%s)", parsed_args)
4646
compute_client = self.app.client_manager.compute
4747

4848
network = utils.find_resource(
@@ -75,7 +75,7 @@ def get_parser(self, prog_name):
7575
return parser
7676

7777
def take_action(self, parsed_args):
78-
self.log.debug("take_action(%s)" % parsed_args)
78+
self.log.debug("take_action(%s)", parsed_args)
7979
compute_client = self.app.client_manager.compute
8080

8181
server = utils.find_resource(

0 commit comments

Comments
 (0)