From 0dfc62bb9a6db7d3cc28d9742f00d5d33063faad Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Wed, 22 May 2019 16:00:08 +0200 Subject: Fix for support of InventoryNames This change addes support for InventoryNames parameter in LCM request going to Ansible server Change-Id: I9aea0b5407460d5dc0b2691e73ba795f8fe2af15 Signed-off-by: Lukasz Rajewski Issue-ID: APPC-1612 --- .../java/org/onap/appc/adapter/ansible/model/AnsibleMessageParser.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'appc-adapters') diff --git a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/onap/appc/adapter/ansible/model/AnsibleMessageParser.java b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/onap/appc/adapter/ansible/model/AnsibleMessageParser.java index 0b4a6bdfe..78c33b3e3 100644 --- a/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/onap/appc/adapter/ansible/model/AnsibleMessageParser.java +++ b/appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/onap/appc/adapter/ansible/model/AnsibleMessageParser.java @@ -64,6 +64,7 @@ public class AnsibleMessageParser { private static final String NODE_LIST_OPT_KEY = "NodeList"; private static final String TIMEOUT_OPT_KEY = "Timeout"; private static final String VERSION_OPT_KEY = "Version"; + private static final String INVENTORY_NAMES_OPT_KEY = "InventoryNames"; private static final String ACTION_OPT_KEY = "Action"; private static final String OUTPUT_OPT_KEY = "Output"; private static final String JSON_ERROR_MESSAGE = "JSONException: Error parsing response"; @@ -303,6 +304,7 @@ public class AnsibleMessageParser { break; case VERSION_OPT_KEY: + case INVENTORY_NAMES_OPT_KEY: jsonPayload.put(key, payload); break; -- cgit 1.2.3-korg