diff options
Diffstat (limited to 'framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java index 31897850..8cc7b454 100644 --- a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java +++ b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java @@ -292,7 +292,12 @@ public class OnapCommandParameter { } } else if (OnapCommandParameterType.BOOL.equals(parameterType)) { if (!(value instanceof Boolean)) { - throw new OnapCommandInvalidParameterValue(this.getName()); + if (value instanceof String) { + value = Boolean.valueOf((String)value); + } else { + throw new OnapCommandInvalidParameterValue(this.getName()); + } + } } this.value = value; |