aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author“Manuel Buil” <mbuil@suse.com>2017-02-15 10:18:03 +0100
committerJose Lausuch <jose.lausuch@ericsson.com>2017-02-15 10:12:07 +0000
commit5409c3c9d63886c4ff0b829deed2c57c5199bdee (patch)
treeac9ac6a7e4b92ae9cf9b75da08a6a3daf010013b
parentabb0ec563a18ba91439a58aa76b166c8bcf0946d (diff)
Bug fix: We are comparing an integer with a string
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” <mbuil@suse.com>
-rw-r--r--opnfv/deployment/fuel/adapter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opnfv/deployment/fuel/adapter.py b/opnfv/deployment/fuel/adapter.py
index 9e22ba8..aa5ad7a 100644
--- a/opnfv/deployment/fuel/adapter.py
+++ b/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