From ae965fe22db4ae69ec1b36bbe4eabc6d1f6bec44 Mon Sep 17 00:00:00 2001 From: Ray Milkey Date: Tue, 23 Oct 2018 14:20:10 -0700 Subject: [PATCH] Fix completers for cfg command and component Change-Id: I8186d12cb2cf5a1c02774271ca36411ae2a3b67b --- .../org/onosproject/cli/cfg/ComponentConfigCommand.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/src/main/java/org/onosproject/cli/cfg/ComponentConfigCommand.java b/cli/src/main/java/org/onosproject/cli/cfg/ComponentConfigCommand.java index 6c694577be..2ac3a1164e 100644 --- a/cli/src/main/java/org/onosproject/cli/cfg/ComponentConfigCommand.java +++ b/cli/src/main/java/org/onosproject/cli/cfg/ComponentConfigCommand.java @@ -31,8 +31,6 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; -import org.onosproject.cli.app.ApplicationCommandCompleter; -import org.onosproject.cli.app.ApplicationNameCompleter; import static com.google.common.base.Strings.isNullOrEmpty; @@ -59,12 +57,12 @@ public class ComponentConfigCommand extends AbstractShellCommand { @Argument(index = 0, name = "command", description = "Command name (get|set|preset)", required = false, multiValued = false) - @Completion(ApplicationCommandCompleter.class) + @Completion(ComponentConfigCommandCompleter.class) String command = null; @Argument(index = 1, name = "component", description = "Component name", required = false, multiValued = false) - @Completion(ApplicationNameCompleter.class) + @Completion(ComponentNameCompleter.class) String component = null; @Argument(index = 2, name = "name", description = "Property name",