From 312ff2dfeec87aad98c0383ab465d8cc30cd7ef1 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Thu, 20 Sep 2012 14:51:48 +1200 Subject: [PATCH] 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 --- heat/engine/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2