components/openstack/horizon/patches/07-remove-image-source.patch
author Craig Mohrman <craig.mohrman@oracle.com>
Mon, 20 Jul 2015 09:11:32 -0700
branchs11u2-sru
changeset 4673 7ca7277ea064
parent 4156 4b1def16fe9b
child 5405 66fd59fecd68
permissions -rw-r--r--
20803826 problem in UTILITY/PHP 21296988 problem in UTILITY/PHP 21445788 CANONICAL_REPO no longer correct for s11.2sru since releasing FOSS Eval packages

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"))]