summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Agrawal <ankit11.agrawal@nttdata.com>2016-02-17 01:23:51 -0800
committerAnkit Agrawal <ankit11.agrawal@nttdata.com>2016-02-17 01:23:51 -0800
commit2b25183c97ae4e0f061921544307c7e6efab69f1 (patch)
tree9bd9ffe248a96342115fd9d5b03dfe49197cb45d
parentf88e4da1d6f507e7fe419a049ca46ba3af5df524 (diff)
downloadpython-cinderclient-2b25183c97ae4e0f061921544307c7e6efab69f1.tar.gz
Fix return type in backup docstring
Fixed return type for export_record and import_record in volume backups. TrivialFix Change-Id: I58aea0996961eab33e5cfa7d57b59cda9859e82e
-rw-r--r--cinderclient/v2/volume_backups.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cinderclient/v2/volume_backups.py b/cinderclient/v2/volume_backups.py
index fc653c8..e293ad9 100644
--- a/cinderclient/v2/volume_backups.py
+++ b/cinderclient/v2/volume_backups.py
@@ -102,18 +102,18 @@ class VolumeBackupManager(base.ManagerWithFind):
"""Export volume backup metadata record.
:param backup_id: The ID of the backup to export.
- :rtype: :class:`VolumeBackup`
+ :rtype: A dictionary containing 'backup_url' and 'backup_service'.
"""
resp, body = \
self.api.client.get("/backups/%s/export_record" % backup_id)
return body['backup-record']
def import_record(self, backup_service, backup_url):
- """Export volume backup metadata record.
+ """Import volume backup metadata record.
:param backup_service: Backup service to use for importing the backup
:param backup_url: Backup URL for importing the backup metadata
- :rtype: :class:`VolumeBackup`
+ :rtype: A dictionary containing volume backup metadata.
"""
body = {'backup-record': {'backup_service': backup_service,
'backup_url': backup_url}}