components/openstack/horizon/patches/07-remove-image-source.patch
branchs11-update
changeset 4072 db0cec748ec0
child 5405 66fd59fecd68
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/openstack/horizon/patches/07-remove-image-source.patch	Tue Apr 07 13:31:20 2015 -0700
@@ -0,0 +1,16 @@
+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"))]