aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java/org
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-12-26 11:30:29 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-12-26 11:30:29 +0530
commit5180adaf7ee371b3387c87499b2bfbbf566e491d (patch)
treeafdf698873b3ac3068dad02647a299adba9e3b0d /framework/src/main/java/org
parent8c79df8d4835e2cded87f60d78e5bf05e3cd6b16 (diff)
Ignore default pararms while discovering schemas
Issue-ID: CLI-66 Change-Id: I529041893e3e2558bbdb9e6c50698cee27f3fa6e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/java/org')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java
index 30a7ac62..b878503a 100644
--- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java
+++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java
@@ -267,6 +267,11 @@ public class OnapCommandDiscoveryUtils {
continue;
}
+ //There are schema like default input parameters and does not have command name
+ if (resourceMap.get(NAME) == null) {
+ continue;
+ }
+
schema.setSchemaName(resource.getFilename());
schema.setCmdName((String) resourceMap.get(NAME));