components/openstack/horizon/patches/07-remove-image-source.patch
author Sowrabha H G<sowrabha.hg@oracle.com>
Wed, 15 Jul 2015 08:08:35 -0700
branchs11u2-sru
changeset 4650 7a924b284d8d
parent 4156 4b1def16fe9b
child 5405 66fd59fecd68
permissions -rw-r--r--
20479968 net-snmp-config --create-snmpv3-user in GZ fails when snmpd is running in NGZ

Internal patch to disable the image_source (Create Volume -> Volume Source -> image)
because copy_volume_from_image is not supported yet.
This patch will not be committed upstream.

--- horizon-2014.2.2/openstack_dashboard/dashboards/project/volumes/volumes/forms.py.orig	2015-03-06 00:02:20.754192323 -0800
+++ horizon-2014.2.2/openstack_dashboard/dashboards/project/volumes/volumes/forms.py	2015-03-06 00:04:15.272654086 -0800
@@ -203,6 +203,9 @@
 
             images = utils.get_available_images(request,
                                           request.user.tenant_id)
+            # Disable the image_source on Solaris
+            images = False
+
             if images:
                 source_type_choices.append(("image_source", _("Image")))
                 choices = [('', _("Choose an image"))]