From: Steve Baker Date: Thu, 20 Sep 2012 02:51:48 +0000 (+1200) Subject: Stop deprecation warning when creating resources directly. X-Git-Tag: 2014.1~1360^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=312ff2dfeec87aad98c0383ab465d8cc30cd7ef1;p=openstack-build%2Fheat-build.git Stop deprecation warning when creating resources directly. 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 --- diff --git a/heat/engine/resources.py b/heat/engine/resources.py index c5fe9374..1759e37f 100644 --- a/heat/engine/resources.py +++ b/heat/engine/resources.py @@ -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