05-disable-unsupported-bootsource.patch revision 5403
5403N/AInternal patch to only enable the current supported boot source option (Boot
3998N/Afrom Image). This patch will not be committed upstream.
2961N/A
5403N/A--- horizon-2015.1.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py.orig 2015-12-12 12:05:17.628569744 -0500
5403N/A+++ horizon-2015.1.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py 2015-12-12 12:08:12.789789554 -0500
5403N/A@@ -153,24 +153,7 @@
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):
5403N/A- source_type_choices.append(
5403N/A- ("volume_image_id",
5403N/A- _("Boot from image (creates a new volume)")))
2961N/A- except Exception:
2961N/A- exceptions.handle(request, _('Unable to retrieve extensions '
5403N/A- 'information.'))
2961N/A-
5403N/A- source_type_choices.append(
5403N/A- ("volume_snapshot_id",
5403N/A- _("Boot from volume snapshot (creates a new volume)")))
2961N/A self.fields['source_type'].choices = source_type_choices
2961N/A
5403N/A @memoized.memoized_method