From d5ca1c7195ff66c54ba83c0b37fe51ae4a2cbcc5 Mon Sep 17 00:00:00 2001 From: Vijendar Komalla Date: Tue, 30 Jul 2013 13:52:17 -0500 Subject: [PATCH] Rackspace database resource output is null This change is a small correction to my previous change that was already merged(bug #1204601). Below given code snippets show the one line code change (Please note the change in return statement in below code) code before this change: for link in dbinstance.links: if link['rel'] == 'self': return dbinstance.links[0]['href'] code with this change: for link in dbinstance.links: if link['rel'] == 'self': return link['href'] Fixes Bug #1204601 Change-Id: Ia81722eb3877e15e1c472e94ed845f3425949b68 --- heat/engine/resources/rackspace/clouddatabase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/resources/rackspace/clouddatabase.py b/heat/engine/resources/rackspace/clouddatabase.py index c01f4fa3..ef344b92 100644 --- a/heat/engine/resources/rackspace/clouddatabase.py +++ b/heat/engine/resources/rackspace/clouddatabase.py @@ -235,7 +235,7 @@ class CloudDBInstance(rackspace_resource.RackspaceResource): for link in dbinstance.links: if link['rel'] == 'self': - return dbinstance.links[0]['href'] + return link['href'] def _resolve_attribute(self, name): if name == 'hostname': -- 2.45.2