Skip to content

Commit 4b41947

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Handle log message interpolation by the logger in network/"
2 parents f945cf7 + c9b1c2a commit 4b41947

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

openstackclient/network/v2/network_segment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def take_action(self, parsed_args):
119119
except Exception as e:
120120
result += 1
121121
LOG.error(_("Failed to delete network segment with "
122-
"ID '%(network_segment)s': %(e)s")
123-
% {'network_segment': network_segment, 'e': e})
122+
"ID '%(network_segment)s': %(e)s"),
123+
{'network_segment': network_segment, 'e': e})
124124

125125
if result > 0:
126126
total = len(parsed_args.network_segment)

openstackclient/network/v2/router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def take_action(self, parsed_args):
249249
except Exception as e:
250250
result += 1
251251
LOG.error(_("Failed to delete router with "
252-
"name or ID '%(router)s': %(e)s")
253-
% {'router': router, 'e': e})
252+
"name or ID '%(router)s': %(e)s"),
253+
{'router': router, 'e': e})
254254

255255
if result > 0:
256256
total = len(parsed_args.router)

openstackclient/network/v2/security_group_rule.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def take_action_network(self, client, parsed_args):
315315
if parsed_args.src_group:
316316
LOG.warning(
317317
_("The %(old)s option is deprecated, "
318-
"please use %(new)s instead.") %
318+
"please use %(new)s instead."),
319319
{'old': '--src-group', 'new': '--remote-group'},
320320
)
321321
elif not (parsed_args.remote_ip is None and
@@ -326,7 +326,7 @@ def take_action_network(self, client, parsed_args):
326326
if parsed_args.src_ip:
327327
LOG.warning(
328328
_("The %(old)s option is deprecated, "
329-
"please use %(new)s instead.") %
329+
"please use %(new)s instead."),
330330
{'old': '--src-ip', 'new': '--remote-ip'},
331331
)
332332
elif attrs['ethertype'] == 'IPv4':
@@ -370,7 +370,7 @@ def take_action_compute(self, client, parsed_args):
370370
if parsed_args.src_group:
371371
LOG.warning(
372372
_("The %(old)s option is deprecated, "
373-
"please use %(new)s instead.") %
373+
"please use %(new)s instead."),
374374
{'old': '--src-group', 'new': '--remote-group'},
375375
)
376376
if not (parsed_args.remote_ip is None and
@@ -379,7 +379,7 @@ def take_action_compute(self, client, parsed_args):
379379
if parsed_args.src_ip:
380380
LOG.warning(
381381
_("The %(old)s option is deprecated, "
382-
"please use %(new)s instead.") %
382+
"please use %(new)s instead."),
383383
{'old': '--src-ip', 'new': '--remote-ip'},
384384
)
385385
else:

openstackclient/network/v2/subnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ def take_action(self, parsed_args):
365365
except Exception as e:
366366
result += 1
367367
LOG.error(_("Failed to delete subnet with "
368-
"name or ID '%(subnet)s': %(e)s")
369-
% {'subnet': subnet, 'e': e})
368+
"name or ID '%(subnet)s': %(e)s"),
369+
{'subnet': subnet, 'e': e})
370370

371371
if result > 0:
372372
total = len(parsed_args.subnet)

openstackclient/network/v2/subnet_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ def take_action(self, parsed_args):
220220
except Exception as e:
221221
result += 1
222222
LOG.error(_("Failed to delete subnet pool with "
223-
"name or ID '%(pool)s': %(e)s")
224-
% {'pool': pool, 'e': e})
223+
"name or ID '%(pool)s': %(e)s"),
224+
{'pool': pool, 'e': e})
225225

226226
if result > 0:
227227
total = len(parsed_args.subnet_pool)

0 commit comments

Comments
 (0)