mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-04 11:51:43 +02:00
Fix spelling of actions in application command
Change-Id: Iae17e1842f92ecd0b6112f1999d11dcff0f5c26a
This commit is contained in:
parent
c2417670d1
commit
b5132faa4c
@ -107,17 +107,21 @@ public class ApplicationCommand extends AbstractShellCommand {
|
||||
return false;
|
||||
}
|
||||
|
||||
String action;
|
||||
if (command.equals(UNINSTALL)) {
|
||||
service.uninstall(appId);
|
||||
action = "Uninstalled";
|
||||
} else if (command.equals(ACTIVATE)) {
|
||||
service.activate(appId);
|
||||
action = "Activated";
|
||||
} else if (command.equals(DEACTIVATE)) {
|
||||
service.deactivate(appId);
|
||||
action = "Deactivated";
|
||||
} else {
|
||||
print("Unsupported command: %s", command);
|
||||
return false;
|
||||
}
|
||||
print("%s-ed %s", command, appId.name());
|
||||
print("%s %s", action, appId.name());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user