summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Chantereau <romain.chantereau@enovance.com>2015-05-20 14:32:10 +0200
committerVincent Untz <vuntz@suse.com>2016-02-21 06:54:05 +0000
commit8b894e0f411c184330acf70baec484609ebe11aa (patch)
tree0993dd381f338eb5c22f25fb98482a098d160f15
parent784e416db4e12118b5260de707afb46356665de9 (diff)
downloadhorizon-8b894e0f411c184330acf70baec484609ebe11aa.tar.gz
Trust sql middleware value conversion and stick to the spec type.
Co-Authored-By: Sylvain Baubeau <sylvain.baubeau@enovance.com> Closes-Bug: #1457028 Change-Id: I2c5bc22c2e024e22ad641d2b367fa3de2dd7636b (cherry picked from commit d2e3c8465780ec013df253d5a34d18e709105704)
-rw-r--r--openstack_dashboard/dashboards/project/instances/tests.py2
-rw-r--r--openstack_dashboard/dashboards/project/instances/workflows/create_instance.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/openstack_dashboard/dashboards/project/instances/tests.py b/openstack_dashboard/dashboards/project/instances/tests.py
index cf828e518..d1c8572d9 100644
--- a/openstack_dashboard/dashboards/project/instances/tests.py
+++ b/openstack_dashboard/dashboards/project/instances/tests.py
@@ -51,7 +51,7 @@ INDEX_URL = reverse('horizon:project:instances:index')
SEC_GROUP_ROLE_PREFIX = \
workflows.update_instance.INSTANCE_SEC_GROUP_SLUG + "_role_"
AVAILABLE = api.cinder.VOLUME_STATE_AVAILABLE
-VOLUME_SEARCH_OPTS = dict(status=AVAILABLE, bootable=1)
+VOLUME_SEARCH_OPTS = dict(status=AVAILABLE, bootable=True)
SNAPSHOT_SEARCH_OPTS = dict(status=AVAILABLE)
diff --git a/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py
index 04898ac51..bc2bea9eb 100644
--- a/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py
+++ b/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py
@@ -471,7 +471,7 @@ class SetInstanceDetailsAction(workflows.Action):
available = api.cinder.VOLUME_STATE_AVAILABLE
volumes = [self._get_volume_display_name(v)
for v in cinder.volume_list(self.request,
- search_opts=dict(status=available, bootable=1))]
+ search_opts=dict(status=available, bootable=True))]
except Exception:
exceptions.handle(self.request,
_('Unable to retrieve list of volumes.'))