summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/api/openstack/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index 54f8e05a9..d8dbd2360 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -126,7 +126,7 @@ class Controller(object):
if not FLAGS.allow_admin_api:
raise webob.exc.HTTPBadRequest()
- rotation = get_param("rotation")
+ rotation = int(get_param("rotation"))
image = self._compute_service.backup(context, server_id,
image_type, rotation)