Changes in RestServer.py 50/78050/1
authorShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Thu, 7 Feb 2019 12:28:20 +0000 (17:58 +0530)
committerShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Thu, 7 Feb 2019 12:28:20 +0000 (17:58 +0530)
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>
ansible-server/src/main/ansible-server/RestServer.py

index 23484a5..d5f85d1 100644 (file)
@@ -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
 

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use