Thomas Vachuska

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

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