summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-06-24 15:18:05 -0500
committerJosh Kearney <josh@jk0.org>2011-06-24 15:18:05 -0500
commit3b85d8080ee06436873bd2e4d8f358e4686da1bf (patch)
tree003370db88172f286d4ef47df4a9b85e72b1c22c
parenta1b9aea9d12eaa32f869e5a4a59b01788e6c836d (diff)
downloadnova-3b85d8080ee06436873bd2e4d8f358e4686da1bf.tar.gz
nova-3b85d8080ee06436873bd2e4d8f358e4686da1bf.tar.xz
nova-3b85d8080ee06436873bd2e4d8f358e4686da1bf.zip
Fixed snapshot logic.
-rw-r--r--nova/compute/manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index d4e1d3a1e..8708768fb 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -507,8 +507,9 @@ class ComputeManager(manager.SchedulerDependentManager):
self.driver.snapshot(instance_ref, image_id)
- if image_type == 'snapshot' and rotation:
- raise exception.ImageRotationNotAllowed
+ if image_type == 'snapshot':
+ if rotation:
+ raise exception.ImageRotationNotAllowed
elif image_type == 'backup':
if rotation:
instance_uuid = instance_ref['uuid']