Skip to content
Browse files

simple proxy like fix for the field to display when it has a value of id

  • Loading branch information...
1 parent 187170d commit e5cc34392714977d642760a0b1af666855a293f7 @wbailey committed Jun 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/claws/report/ec2.rb
View
3 lib/claws/report/ec2.rb
@@ -41,7 +41,8 @@ def run
self.config.ec2.fields.each do |field, properties|
props = ( field == 'status' ) ? {:color => color} : {}
- column i.send( field ), props
+ field_alias = field == 'id' ? 'instance_id' : field # This makes 1.8.7 not spit out a warning
+ column i.send( field_alias ), props
end
end

0 comments on commit e5cc343

Please sign in to comment.
Something went wrong with that request. Please try again.