summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']