From 1b3e909f413e81a50cb5f44e187ea3cdd1e32f69 Mon Sep 17 00:00:00 2001 From: Shubhada Ramkrishna Vaze Date: Thu, 7 Feb 2019 17:58:20 +0530 Subject: Changes in RestServer.py Ansible Inventory file includes all partial match entries for Nodelist Change-Id: I27613a2402731750441938b2b269cb9fc6259825 Issue-ID: APPC-1288 Signed-off-by: Shubhada Ramkrishna Vaze --- ansible-server/src/main/ansible-server/RestServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible-server/src/main/ansible-server/RestServer.py b/ansible-server/src/main/ansible-server/RestServer.py index 23484a54..d5f85d1a 100644 --- a/ansible-server/src/main/ansible-server/RestServer.py +++ b/ansible-server/src/main/ansible-server/RestServer.py @@ -410,11 +410,11 @@ class TestManager (object): else: for key in data_inventory_orig: - if node in " ".join(data_inventory_orig[key]): + if node+" " in " ".join(data_inventory_orig[key]): if not key in data_inventory_target: data_inventory_target[key] = [] for cred in data_inventory_orig[key]: - if node in cred: + if node+" " in cred: data_inventory_target[key].append(cred) Fail = False -- cgit 1.2.3-korg