From: Kanagaraj Manickam k00365106 Date: Wed, 2 May 2018 10:05:53 +0000 (+0530) Subject: GetAgent never throws exception X-Git-Tag: v2.0.2~30 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d651a1447b8dfd1cc134db0569c8dcd31a33fed0;p=cli.git GetAgent never throws exception Issue-ID: CLI-106 Change-Id: I4caf9e06bdc4301623c1388d64418aa00cb06da5 Signed-off-by: Kanagaraj Manickam k00365106 --- diff --git a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java index 1ee1b200..ed88b0c6 100644 --- a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java +++ b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java @@ -60,7 +60,7 @@ public class OnapSnmpCommand extends OnapCommand { super.addDefaultSchemas(OnapCommandSnmpConstants.DEFAULT_PARAMETER_SNMP_FILE_NAME); } - private String getAgent() throws OnapCommandException { + private String getAgent() { OnapCommandParameter onapCommandParameter = this.getParametersMap().get(OnapCommandSnmpConstants.SNMP_AGENT); return (String) onapCommandParameter.getValue(); }