Updated Branches: refs/heads/0.13.x 31a148b39 -> de0559a84 refs/heads/trunk a68e04384 -> 51bb4f25f
Rename some methods for increased consistency. Signed-off-by: Tomaz Muraus <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/51bb4f25 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/51bb4f25 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/51bb4f25 Branch: refs/heads/trunk Commit: 51bb4f25f8cbf195914bc3907c1550692595322e Parents: 9d9fcfc Author: Alex Gaynor <[email protected]> Authored: Tue Jul 16 12:19:09 2013 -0700 Committer: Tomaz Muraus <[email protected]> Committed: Tue Jul 16 23:58:22 2013 +0200 ---------------------------------------------------------------------- libcloud/compute/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/51bb4f25/libcloud/compute/base.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/base.py b/libcloud/compute/base.py index 5014a54..b5def91 100644 --- a/libcloud/compute/base.py +++ b/libcloud/compute/base.py @@ -415,7 +415,7 @@ class StorageVolume(UuidMixin): @returns C{VolumeSnapshot} """ - return self.driver.snapshot_volume(volume=self, name=name) + return self.driver.create_volume_snapshot(volume=self, name=name) def destroy(self): """ @@ -441,7 +441,7 @@ class VolumeSnapshot(object): @returns C{bool} """ - return self.driver.destroy_snapshot(snapshot=self) + return self.driver.destroy_volume_snapshot(snapshot=self) class NodeDriver(BaseDriver): @@ -817,23 +817,23 @@ class NodeDriver(BaseDriver): raise NotImplementedError( 'list_volume_snapshots not implemented for this driver') - def snapshot_volume(self, volume, name): + def create_volume_snapshot(self, volume, name): """ Creates a snapshot of the storage volume. @rtype: L{VolumeSnapshot} """ raise NotImplementedError( - 'snapshot_volume not implemented for this driver') + 'create_volume_snapshot not implemented for this driver') - def destroy_snapshot(self, snapshot): + def destroy_volume_snapshot(self, snapshot): """ Destroys a snapshot. @rtype: L{bool} """ raise NotImplementedError( - 'destroy_snapshot not implemented for this driver') + 'destroy_volume_snapshot not implemented for this driver') def _wait_until_running(self, node, wait_period=3, timeout=600, ssh_interface='public_ips', force_ipv4=True):
