summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-06-23 16:28:59 -0500
committerJosh Kearney <josh@jk0.org>2011-06-23 16:28:59 -0500
commit2d0d1e179dd8870967ebf00a82fbc7d21bed6116 (patch)
treef0f60e3d5451b9722da13323af980b2ec684a142
parente3c1a6742b16add04d76631b9dbd4f2ef016e0b3 (diff)
downloadnova-2d0d1e179dd8870967ebf00a82fbc7d21bed6116.tar.gz
nova-2d0d1e179dd8870967ebf00a82fbc7d21bed6116.tar.xz
nova-2d0d1e179dd8870967ebf00a82fbc7d21bed6116.zip
Cast rotation to int.
-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)