05-disable-unsupported-bootsource.patch revision 5798
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
5798N/A--- horizon-2015.1.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py.orig 2016-04-12 07:19:45.259440809 -0700
5798N/A+++ horizon-2015.1.2/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py 2016-04-12 07:22:38.755245076 -0700
5798N/A@@ -153,25 +153,9 @@ 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):
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
5798N/A+ self.fields['source_type'].initial = source_type_choices[1][0]
2961N/A
5403N/A @memoized.memoized_method
5798N/A def _get_flavor(self, flavor_id):