components/openstack/horizon/patches/07-remove-image-source.patch
changeset 5405 66fd59fecd68
parent 3998 5bd484384122
child 6856 356aeea98c39
equal deleted inserted replaced
5404:55e409ba4e72 5405:66fd59fecd68
     1 Internal patch to disable the image_source (Create Volume -> Volume Source -> image)
     1 Internal patch to disable the image_source (Create Volume -> Volume Source -> image)
     2 because copy_volume_from_image is not supported yet.
     2 because copy_volume_from_image is not supported yet.
     3 This patch will not be committed upstream.
     3 This patch will not be committed upstream.
     4 
     4 
     5 --- horizon-2014.2.2/openstack_dashboard/dashboards/project/volumes/volumes/forms.py.orig	2015-03-06 00:02:20.754192323 -0800
     5 --- horizon-2015.1.2/openstack_dashboard/dashboards/project/volumes/volumes/forms.py.orig	2015-12-12 16:00:05.464623742 -0500
     6 +++ horizon-2014.2.2/openstack_dashboard/dashboards/project/volumes/volumes/forms.py	2015-03-06 00:04:15.272654086 -0800
     6 +++ horizon-2015.1.2/openstack_dashboard/dashboards/project/volumes/volumes/forms.py	2015-12-12 16:08:30.652433673 -0500
     7 @@ -203,6 +203,9 @@
     7 @@ -233,6 +233,9 @@
     8  
     8  
     9              images = utils.get_available_images(request,
     9          images = utils.get_available_images(request,
    10                                            request.user.tenant_id)
    10                                              request.user.tenant_id)
    11 +            # Disable the image_source on Solaris
    11 +        # Disable the image source on Solaris
    12 +            images = False
    12 +        images = False
    13 +
    13 +        
    14              if images:
    14          if images:
    15                  source_type_choices.append(("image_source", _("Image")))
    15              source_type_choices.append(("image_source", _("Image")))
    16                  choices = [('', _("Choose an image"))]
    16              choices = [('', _("Choose an image"))]