Permalink
Browse files

show availabilityZone when describing instances

  • Loading branch information...
1 parent 6ac6430 commit b183f9fcea666128389529d3c63f6ee3459c70c4 @jnewland jnewland committed Sep 4, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/capsize/ec2_plugin.rb
@@ -587,9 +587,13 @@ def print_instance_description(result = nil)
puts " instancesSet:launchTime = " + instance.launchTime unless instance.launchTime.nil?
puts " instancesSet:amiLaunchIndex = " + instance.amiLaunchIndex
+ unless instance.placement.nil?
+ puts " instancesSet:placement:availabilityZone = " + instance.placement.availabilityZone
+ end
+
unless instance.instanceState.nil?
- puts " instanceState:code = " + instance.instanceState.code
- puts " instanceState:name = " + instance.instanceState.name
+ puts " instancesSet:instanceState:code = " + instance.instanceState.code
+ puts " instancesSet:instanceState:name = " + instance.instanceState.name
end
end

0 comments on commit b183f9f

Please sign in to comment.