summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v2/backup_record.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2023-05-08 10:54:22 +0100
committerStephen Finucane <sfinucan@redhat.com>2023-05-10 10:51:30 +0100
commit35ba1d8f1304d3255b96b704d524666ec5b6fea2 (patch)
tree6d4ab560d4086e8b1a1f935b8531d7e85550cc36 /openstackclient/volume/v2/backup_record.py
parent28ffa2bf9f017212da5eb84b0cf74df62e2f5eb9 (diff)
downloadpython-openstackclient-35ba1d8f1304d3255b96b704d524666ec5b6fea2.tar.gz
Blacken openstackclient.volume
Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: Ic318617c67ab7ce6527f9016b759a1d4b0b80802 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/volume/v2/backup_record.py')
-rw-r--r--openstackclient/volume/v2/backup_record.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/openstackclient/volume/v2/backup_record.py b/openstackclient/volume/v2/backup_record.py
index 0d3af641..be4b9c69 100644
--- a/openstackclient/volume/v2/backup_record.py
+++ b/openstackclient/volume/v2/backup_record.py
@@ -26,17 +26,19 @@ LOG = logging.getLogger(__name__)
class ExportBackupRecord(command.ShowOne):
- _description = _("""Export volume backup details.
+ _description = _(
+ """Export volume backup details.
Backup information can be imported into a new service instance to be able to
-restore.""")
+restore."""
+ )
def get_parser(self, prog_name):
parser = super(ExportBackupRecord, self).get_parser(prog_name)
parser.add_argument(
"backup",
metavar="<backup>",
- help=_("Backup to export (name or ID)")
+ help=_("Backup to export (name or ID)"),
)
return parser
@@ -55,29 +57,31 @@ restore.""")
class ImportBackupRecord(command.ShowOne):
- _description = _("""Import volume backup details.
+ _description = _(
+ """Import volume backup details.
Exported backup details contain the metadata necessary to restore to a new or
-rebuilt service instance""")
+rebuilt service instance"""
+ )
def get_parser(self, prog_name):
parser = super(ImportBackupRecord, self).get_parser(prog_name)
parser.add_argument(
"backup_service",
metavar="<backup_service>",
- help=_("Backup service containing the backup.")
+ help=_("Backup service containing the backup."),
)
parser.add_argument(
"backup_metadata",
metavar="<backup_metadata>",
- help=_("Encoded backup metadata from export.")
+ help=_("Encoded backup metadata from export."),
)
return parser
def take_action(self, parsed_args):
volume_client = self.app.client_manager.volume
backup_data = volume_client.backups.import_record(
- parsed_args.backup_service,
- parsed_args.backup_metadata)
+ parsed_args.backup_service, parsed_args.backup_metadata
+ )
backup_data.pop('links', None)
return zip(*sorted(backup_data.items()))