summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-02-12 15:56:08 +0000
committerGerrit Code Review <review@openstack.org>2020-02-12 15:56:08 +0000
commited8e570e6302329f198dd832a0212b28131ce493 (patch)
treea64457677f6f03ea30d9a559b8c220e75c144225
parentdea742c940629c32a6c2b5f47055477612ce6d6e (diff)
parent8f12b620a0002325b8f90fa8c2cfe267543443df (diff)
downloadpython-cinderclient-6.0.0.tar.gz
Merge "Update revert_to_snapshot params"6.0.0
-rw-r--r--cinderclient/v3/volumes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cinderclient/v3/volumes.py b/cinderclient/v3/volumes.py
index 7c161bc..fac5eff 100644
--- a/cinderclient/v3/volumes.py
+++ b/cinderclient/v3/volumes.py
@@ -129,11 +129,11 @@ class VolumeManager(volumes.VolumeManager):
"""Revert a volume to a snapshot.
The snapshot must be the most recent one known to cinder.
- :param volume: volume object.
- :param snapshot: snapshot object.
+ :param volume: volume object or volume id.
+ :param snapshot: snapshot object or snapshot id.
"""
return self._action('revert', volume,
- info={'snapshot_id': base.getid(snapshot.id)})
+ info={'snapshot_id': base.getid(snapshot)})
@api_versions.wraps('3.12')
def summary(self, all_tenants):