commit | f08cb4c0e025087222d1f80a1fd99eb1e00b6115 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Feb 11 18:35:59 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Feb 17 01:20:22 2016 +0000 |
tree | 014a5f08bfd23c211e8362f5d430c5aa158a59da | |
parent | 800a7a496ac55a0fc4cfe4b4f219dd24a70e0d94 [diff] [blame] |
Define valueAs() to get the enclosed value and remove volume() volume() is replaced by valueAs() Change-Id: I3dbcbd6a0b8fcd28f0064272fe1fa6d7259e0a87
diff --git a/cli/src/main/java/org/onosproject/cli/net/AllocationsCommand.java b/cli/src/main/java/org/onosproject/cli/net/AllocationsCommand.java index ccaebd4..52d9bb8 100644 --- a/cli/src/main/java/org/onosproject/cli/net/AllocationsCommand.java +++ b/cli/src/main/java/org/onosproject/cli/net/AllocationsCommand.java
@@ -115,7 +115,7 @@ for (ResourceAllocation a : allocations) { print("%s%s allocated by %s", Strings.repeat(" ", level + 1), - a.resource().last(), asVerboseString(a.consumer())); + a.resource().valueAs(Object.class).orElse(""), asVerboseString(a.consumer())); } } }