05-disable-unsupported-bootsource.patch revision 3998
3998N/AInternal patch to only enable the current supported boot source (Boot
3998N/Afrom Image). This patch will not be committed upstream.
2961N/A
3998N/A--- horizon-2014.2.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py.~1~ 2014-10-16 06:20:50.000000000 -0700
3998N/A+++ horizon-2014.2.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py 2014-10-24 11:58:37.591052103 -0700
3998N/A@@ -141,22 +141,7 @@ class SetInstanceDetailsAction(workflows
2961N/A source_type_choices = [
3998N/A ('', _("Select source")),
2961N/A ("image_id", _("Boot from image")),
2961N/A- ("instance_snapshot_id", _("Boot from snapshot")),
2961N/A ]
2961N/A- if base.is_service_enabled(request, 'volume'):
2961N/A- source_type_choices.append(("volume_id", _("Boot from volume")))
2961N/A-
2961N/A- try:
2961N/A- if api.nova.extension_supported("BlockDeviceMappingV2Boot",
2961N/A- request):
2961N/A- source_type_choices.append(("volume_image_id",
3998N/A- _("Boot from image (creates a new volume)")))
2961N/A- except Exception:
2961N/A- exceptions.handle(request, _('Unable to retrieve extensions '
2961N/A- 'information.'))
2961N/A-
2961N/A- source_type_choices.append(("volume_snapshot_id",
3998N/A- _("Boot from volume snapshot (creates a new volume)")))
2961N/A self.fields['source_type'].choices = source_type_choices
2961N/A
2961N/A def clean(self):