From 2714078779d24d2b7e7134a93b157b0b1690c7e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E2=80=9CManuel=20Buil=E2=80=9D?= Date: Wed, 15 Feb 2017 10:18:03 +0100 Subject: [PATCH] Bug fix: We are comparing an integer with a string MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The config file in SFC using this library was providing an integer whereas FUEL was providing a string. e.g. we were comparing 5 with '5' and thus the return was false Change-Id: I04c27403d479c45acd102a3dde848ba5b2427a10 Signed-off-by: “Manuel Buil” --- modules/opnfv/deployment/fuel/adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/opnfv/deployment/fuel/adapter.py b/modules/opnfv/deployment/fuel/adapter.py index 9e22ba891..aa5ad7a44 100644 --- a/modules/opnfv/deployment/fuel/adapter.py +++ b/modules/opnfv/deployment/fuel/adapter.py @@ -66,7 +66,7 @@ class FuelAdapter(manager.DeploymentHandler): if options and options['cluster'] and len(self.nodes) > 0: n = [] for node in self.nodes: - if node.info['cluster'] == options['cluster']: + if str(node.info['cluster']) == str(options['cluster']): n.append(node) return n -- 2.16.6