incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark McLoughlin <mar...@redhat.com>
Subject [PATCH] Client: correctly format instance addresses
Date Thu, 18 Aug 2011 09:24:21 GMT
With the addition of the address type, addresses are now being
formatted as e.g. 'typeipv4address10.0.0.2'.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
 client/lib/plain_formatter.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/lib/plain_formatter.rb b/client/lib/plain_formatter.rb
index c12ec15..76503ac 100644
--- a/client/lib/plain_formatter.rb
+++ b/client/lib/plain_formatter.rb
@@ -65,8 +65,8 @@ module DeltaCloud
             @obj.name ? @obj.name[0,15] : 'unknown',
             @obj.image.name ? @obj.image.name[0,15] : 'unknown',
             @obj.state ? @obj.state.to_s[0,10] : 'unknown',
-            @obj.public_addresses.join(',')[0,32],
-            @obj.private_addresses.join(',')[0,32]
+            @obj.public_addresses.collect { |a| a[:address] }.join(',')[0,32],
+            @obj.private_addresses.collect { |a| a[:address] }.join(',')[0,32]
           )
         end
       end
-- 
1.7.4.4


Mime
View raw message