diff options
author | Shubhada Ramkrishna Vaze <SV00449682@TechMahindra.com> | 2019-02-07 17:58:20 +0530 |
---|---|---|
committer | Shubhada Ramkrishna Vaze <SV00449682@TechMahindra.com> | 2019-02-07 17:58:20 +0530 |
commit | 1b3e909f413e81a50cb5f44e187ea3cdd1e32f69 (patch) | |
tree | 010d7f9024b17bd6d39f2f63af2ea7706b426259 /ansible-server/src | |
parent | 55b6a19742a02fdb854b66efac94fcb86b95378d (diff) |
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 <SV00449682@TechMahindra.com>
Diffstat (limited to 'ansible-server/src')
-rw-r--r-- | ansible-server/src/main/ansible-server/RestServer.py | 4 |
1 files 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 |