6033N/AInternal patch to only enable the current supported boot source option (Boot
4070N/Afrom Image). This patch will not be committed upstream.
2971N/A
6033N/A--- horizon-2015.1.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py.orig 2015-12-12 12:05:17.628569744 -0500
6033N/A+++ horizon-2015.1.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py 2015-12-12 12:08:12.789789554 -0500
6033N/A@@ -153,24 +153,7 @@
2971N/A source_type_choices = [
4070N/A ('', _("Select source")),
2971N/A ("image_id", _("Boot from image")),
2971N/A- ("instance_snapshot_id", _("Boot from snapshot")),
2971N/A ]
2971N/A- if base.is_service_enabled(request, 'volume'):
2971N/A- source_type_choices.append(("volume_id", _("Boot from volume")))
2971N/A-
2971N/A- try:
2971N/A- if api.nova.extension_supported("BlockDeviceMappingV2Boot",
2971N/A- request):
6033N/A- source_type_choices.append(
6033N/A- ("volume_image_id",
6033N/A- _("Boot from image (creates a new volume)")))
2971N/A- except Exception:
2971N/A- exceptions.handle(request, _('Unable to retrieve extensions '
6033N/A- 'information.'))
2971N/A-
6033N/A- source_type_choices.append(
6033N/A- ("volume_snapshot_id",
6033N/A- _("Boot from volume snapshot (creates a new volume)")))
2971N/A self.fields['source_type'].choices = source_type_choices
2971N/A
6033N/A @memoized.memoized_method