Merge "Changes in RestServer.py"
diff --git a/ansible-server/src/main/ansible-server/RestServer.py b/ansible-server/src/main/ansible-server/RestServer.py
index 23484a5..d5f85d1 100644
--- a/ansible-server/src/main/ansible-server/RestServer.py
+++ b/ansible-server/src/main/ansible-server/RestServer.py
@@ -410,11 +410,11 @@
 
                                         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