From d6ec9714dd61f9ca55817378e26e7319f459fd7d Mon Sep 17 00:00:00 2001 From: Jose Idar Date: Tue, 23 Sep 2014 12:32:59 -0500 Subject: [PATCH] Fixes calculate_snapshot_restore_timeout() method. Change-Id: Ia81a4b0572475767b010b97e9876744ac5f24c38 --- cloudcafe/blockstorage/volumes_api/common/behaviors.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudcafe/blockstorage/volumes_api/common/behaviors.py b/cloudcafe/blockstorage/volumes_api/common/behaviors.py index 70b7becf..c2ada814 100644 --- a/cloudcafe/blockstorage/volumes_api/common/behaviors.py +++ b/cloudcafe/blockstorage/volumes_api/common/behaviors.py @@ -84,12 +84,12 @@ class VolumesAPI_CommonBehaviors(BaseBehavior): return timeout - def calculate_restore_snapshot_timeout(self, image_size): + def calculate_snapshot_restore_timeout(self, image_size): timeout = self._calculate_timeout( size=image_size, - max_timeout=self.config.restore_snapshot_max_timeout, - min_timeout=self.config.restore_snapshot_min_timeout, - wait_per_gb=self.config.restore_snapshot_wait_per_gigabyte) + max_timeout=self.config.snapshot_restore_max_timeout, + min_timeout=self.config.snapshot_restore_min_timeout, + wait_per_gb=self.config.snapshot_restore_wait_per_gigabyte) if not timeout: timeout = self.config.snapshot_restore_base_timeout else: