]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Stop deprecation warning when creating resources directly.
authorSteve Baker <sbaker@redhat.com>
Thu, 20 Sep 2012 02:51:48 +0000 (14:51 +1200)
committerSteve Baker <sbaker@redhat.com>
Thu, 20 Sep 2012 02:51:48 +0000 (14:51 +1200)
This change stops the following warning from being logged:
heat/heat/engine/resources.py:141: DeprecationWarning: object.__new__()
takes no parameters
  return super(Resource, cls).__new__(cls, name, json, stack)

Change-Id: Icf6187fdcc460d9cd732ebfc0cf14390dc240c5c

heat/engine/resources.py

index c5fe93747004b353108959eec8ae85888be3fac8..1759e37f7f5453386ccb313b5b5c93e533098939 100644 (file)
@@ -138,7 +138,7 @@ class Resource(object):
 
         if cls != Resource:
             # Call is already for a subclass, so pass it through
-            return super(Resource, cls).__new__(cls, name, json, stack)
+            return super(Resource, cls).__new__(cls)
 
         # Select the correct subclass to instantiate
         import resource_types