ONOS-365 Excluding intents with state=null from output.
Change-Id: I96555f6c1483e9d744b7d67bae8d4a221a630f5d
Showing
1 changed file
with
6 additions
and
4 deletions
| ... | @@ -76,10 +76,12 @@ public class IntentsListCommand extends AbstractShellCommand { | ... | @@ -76,10 +76,12 @@ 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 | - print("id=%s, state=%s, type=%s, appId=%s", | 79 | + if (state != null) { |
| 80 | - intent.id(), state, intent.getClass().getSimpleName(), | 80 | + print("id=%s, state=%s, type=%s, appId=%s", |
| 81 | - intent.appId().name()); | 81 | + intent.id(), state, intent.getClass().getSimpleName(), |
| 82 | - printDetails(service, intent); | 82 | + intent.appId().name()); |
| 83 | + printDetails(service, intent); | ||
| 84 | + } | ||
| 83 | } | 85 | } |
| 84 | } | 86 | } |
| 85 | } | 87 | } | ... | ... |
-
Please register or login to post a comment