diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2019-05-22 16:00:08 +0200 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-05-22 14:51:10 +0000 |
commit | 0dfc62bb9a6db7d3cc28d9742f00d5d33063faad (patch) | |
tree | 98b1917b75cc823546fa5dad65925248e4ac625b /appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle | |
parent | fc2018739d072a0287b84ff78c94572bce5aba7c (diff) |
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 <lukasz.rajewski@orange.com>
Issue-ID: APPC-1612
Diffstat (limited to 'appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle')
-rw-r--r-- | appc-adapters/appc-ansible-adapter/appc-ansible-adapter-bundle/src/main/java/org/onap/appc/adapter/ansible/model/AnsibleMessageParser.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; |