summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2/consistency_group.py
diff options
Diffstat (limited to 'openstackclient/volume/v2/consistency_group.py')
-rw-r--r--openstackclient/volume/v2/consistency_group.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/openstackclient/volume/v2/consistency_group.py b/openstackclient/volume/v2/consistency_group.py
index 347724f..31959c7 100644
--- a/openstackclient/volume/v2/consistency_group.py
+++ b/openstackclient/volume/v2/consistency_group.py
@@ -18,10 +18,10 @@ import argparse
import logging
from osc_lib.cli import format_columns
-from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
+from openstackclient import command
from openstackclient.i18n import _
@@ -38,8 +38,8 @@ def _find_volumes(parsed_args_volumes, volume_client):
except Exception as e:
result += 1
LOG.error(
- _("Failed to find volume with name or ID '%(volume)s':%(e)s")
- % {'volume': volume, 'e': e}
+ _("Failed to find volume with name or ID '%(volume)s':%(e)s"),
+ {'volume': volume, 'e': e},
)
return result, uuid
@@ -73,8 +73,8 @@ class AddVolumeToConsistencyGroup(command.Command):
if result > 0:
total = len(parsed_args.volumes)
LOG.error(
- _("%(result)s of %(total)s volumes failed to add.")
- % {'result': result, 'total': total}
+ _("%(result)s of %(total)s volumes failed to add."),
+ {'result': result, 'total': total},
)
if add_uuid:
@@ -226,8 +226,8 @@ class DeleteConsistencyGroup(command.Command):
_(
"Failed to delete consistency group with "
"name or ID '%(consistency_group)s':%(e)s"
- )
- % {'consistency_group': i, 'e': e}
+ ),
+ {'consistency_group': i, 'e': e},
)
if result > 0:
@@ -317,8 +317,8 @@ class RemoveVolumeFromConsistencyGroup(command.Command):
if result > 0:
total = len(parsed_args.volumes)
LOG.error(
- _("%(result)s of %(total)s volumes failed to remove.")
- % {'result': result, 'total': total}
+ _("%(result)s of %(total)s volumes failed to remove."),
+ {'result': result, 'total': total},
)
if remove_uuid: