@@ -38,8 +38,8 @@ def _find_volumes(parsed_args_volumes, volume_client):
3838 except Exception as e :
3939 result += 1
4040 LOG .error (
41- _ ("Failed to find volume with name or ID '%(volume)s':%(e)s" )
42- % {'volume' : volume , 'e' : e }
41+ _ ("Failed to find volume with name or ID '%(volume)s':%(e)s" ),
42+ {'volume' : volume , 'e' : e },
4343 )
4444
4545 return result , uuid
@@ -73,8 +73,8 @@ def take_action(self, parsed_args):
7373 if result > 0 :
7474 total = len (parsed_args .volumes )
7575 LOG .error (
76- _ ("%(result)s of %(total)s volumes failed to add." )
77- % {'result' : result , 'total' : total }
76+ _ ("%(result)s of %(total)s volumes failed to add." ),
77+ {'result' : result , 'total' : total },
7878 )
7979
8080 if add_uuid :
@@ -226,8 +226,8 @@ def take_action(self, parsed_args):
226226 _ (
227227 "Failed to delete consistency group with "
228228 "name or ID '%(consistency_group)s':%(e)s"
229- )
230- % {'consistency_group' : i , 'e' : e }
229+ ),
230+ {'consistency_group' : i , 'e' : e },
231231 )
232232
233233 if result > 0 :
@@ -317,8 +317,8 @@ def take_action(self, parsed_args):
317317 if result > 0 :
318318 total = len (parsed_args .volumes )
319319 LOG .error (
320- _ ("%(result)s of %(total)s volumes failed to remove." )
321- % {'result' : result , 'total' : total }
320+ _ ("%(result)s of %(total)s volumes failed to remove." ),
321+ {'result' : result , 'total' : total },
322322 )
323323
324324 if remove_uuid :
0 commit comments