Thomas Vachuska

ONOS-365 Excluding intents with state=null from output.

Change-Id: I96555f6c1483e9d744b7d67bae8d4a221a630f5d
......@@ -76,6 +76,7 @@ public class IntentsListCommand extends AbstractShellCommand {
} else {
for (Intent intent : service.getIntents()) {
IntentState state = service.getIntentState(intent.id());
if (state != null) {
print("id=%s, state=%s, type=%s, appId=%s",
intent.id(), state, intent.getClass().getSimpleName(),
intent.appId().name());
......@@ -83,6 +84,7 @@ public class IntentsListCommand extends AbstractShellCommand {
}
}
}
}
/**
* Internal local class to keep track of all intent summaries.
......