components/openstack/heat/patches/05-neutron-names-required.patch
changeset 3998 5bd484384122
parent 2025 8dbf23e740f2
child 5405 66fd59fecd68
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
     1 In-house patch to change the name of Neutron objects to use underscores
     1 In-house patch to change the name of Neutron objects to use underscores
     2 instead of hyphens on Solaris.  This patch has not yet been submitted
     2 instead of hyphens on Solaris.  This patch has not yet been submitted
     3 upstream.
     3 upstream.
     4 
     4 
     5 --- heat-2013.2.3/heat/engine/resources/neutron/neutron.py.orig     2014-07-22 18:07:26.583195123 -0600
     5 --- heat-2014.2.2/heat/engine/resources/neutron/neutron.py.orig     2014-07-22 18:07:26.583195123 -0600
     6 +++ heat-2013.2.3/heat/engine/resources/neutron/neutron.py  2014-07-22 18:08:49.115350165 -0600
     6 +++ heat-2014.2.2/heat/engine/resources/neutron/neutron.py  2014-07-22 18:08:49.115350165 -0600
     7 @@ -13,6 +13,8 @@
     7 @@ -11,6 +11,7 @@
     8  #    License for the specific language governing permissions and limitations
     8  #    License for the specific language governing permissions and limitations
     9  #    under the License.
     9  #    under the License.
    10 
    10 
    11 +import platform
    11 +import platform
    12 +
    12  import warnings
    13  from neutronclient.common.exceptions import NeutronClientException
       
    14 
    13 
    15  from heat.common import exception
    14  from heat.common import exception
    16 @@ -147,3 +149,10 @@
    15 @@ -188,3 +189,10 @@ class NeutronResource(resource.Resource)
    17                      else:
    16      def check_delete_complete(self, delete_task):
    18                          raise
    17          # if the resource was already deleted, delete_task will be None
    19          return seclist
    18          return delete_task is None or delete_task.step()
    20 +
    19 +
    21 +    def physical_resource_name(self):
    20 +    def physical_resource_name(self):
    22 +        name = super(NeutronResource, self).physical_resource_name()
    21 +        name = super(NeutronResource, self).physical_resource_name()
    23 +        if platform.uname()[0] == "SunOS":
    22 +        if platform.uname()[0] == "SunOS":
    24 +            # EVS can not use hyphen characters
    23 +            # EVS can not use hyphen characters