Sfoglia il codice sorgente

Merge "Update revert_to_snapshot params"

tags/6.0.0^0
Zuul Gerrit Code Review 1 mese fa
parent
commit
ed8e570e63
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      cinderclient/v3/volumes.py

+ 3
- 3
cinderclient/v3/volumes.py Vedi File

@@ -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):


Loading…
Annulla
Salva