summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-04-23 22:56:26 +0000
committerGerrit Code Review <review@openstack.org>2016-04-23 22:56:27 +0000
commitbe0d90e14ad1f62293873d21c5617dc9eb3ce295 (patch)
tree6bb94658b84b31514c70c4675d95478110dc63ad
parent879799b3fd65559bcaf2bf36381cc3dd70b54eba (diff)
parent8b894e0f411c184330acf70baec484609ebe11aa (diff)
downloadhorizon-be0d90e14ad1f62293873d21c5617dc9eb3ce295.tar.gz
Merge "Trust sql middleware value conversion and stick to the spec type." into stable/liberty
-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 da40bddfc..6868db798 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.'))