components/openstack/horizon/patches/07-remove-image-source.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 6856 356aeea98c39
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

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-9.0.1/openstack_dashboard/dashboards/project/volumes/volumes/forms.py.~1~	2016-06-02 13:05:51.000000000 -0700
+++ horizon-9.0.1/openstack_dashboard/dashboards/project/volumes/volumes/forms.py	2016-06-29 23:54:56.869785260 -0700
@@ -230,6 +230,9 @@ class CreateForm(forms.SelfHandlingForm)
 
         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"))]