6:04PM < :~/chef-repo 0 %> knife ec2 server listDEBUG: Using configuration from /Users/kelp/chef-repo/.chef/knife.rb[WARN] Fog::AWS::Compute.new is deprecated, use Fog::Compute.new(:provider => 'AWS') instead (/Users/kelp/.rvm/gems/ /gems/fog-0.6.0/lib/fog/core/service.rb:58:in `new')[WARN] Fog::AWS::Compute::Server => #ip_address is deprecated, use #public_ip_address instead (/Users/kelp/.rvm/gems/ /gems/fog-0.6.0/lib/fog/compute/models/aws/server.rb:9)[WARN] Fog::AWS::Compute::Server => #ip_address is deprecated, use #public_ip_address instead (/Users/kelp/.rvm/gems/ /gems/fog-0.6.0/lib/fog/compute/models/aws/server.rb:9)"running"INFO: Server state:[WARN] Fog::AWS::Compute::Server => #ip_address is deprecated, use #public_ip_address instead (/Users/kelp/.rvm/gems/ /gems/fog-0.6.0/lib/fog/compute/models/aws/server.rb:9)"running"INFO: Server state:[WARN] Fog::AWS::Compute::Server => #ip_address is deprecated, use #public_ip_address instead (/Users/kelp/.rvm/gems/ /gems/fog-0.6.0/lib/fog/compute/models/aws/server.rb:9)[WARN] Fog::AWS::Compute::Server => #ip_address is deprecated, use #public_ip_address instead (/Users/kelp/.rvm/gems/ /gems/fog-0.6.0/lib/fog/compute/models/aws/server.rb:9)[{}]INFO: Server state:/Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:330:in `scan_line': private method `scan' called for {}:Hash (NoMethodError)from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:318:in `call'from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:318:in `percent_line'from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:308:in `scan'from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:307:in `each'from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:307:in `scan'from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:500:in `compile'from /Users/kelp/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/erb.rb:668:in `initialize'from /Users/kelp/.rvm/gems/ /gems/highline-1.6.1/lib/highline.rb:376:in `new'from /Users/kelp/.rvm/gems/ /gems/highline-1.6.1/lib/highline.rb:376:in `list'from /Users/kelp/.rvm/gems/ /gems/highline-1.6.1/lib/highline.rb:375:in `map'from /Users/kelp/.rvm/gems/ /gems/highline-1.6.1/lib/highline.rb:375:in `list'from /Users/kelp/.rvm/gems/ /gems/chef-0.9.14/lib/chef/knife/ec2_server_list.rb:83:in `run'from /Users/kelp/.rvm/gems/ /gems/chef-0.9.14/lib/chef/knife.rb:127:in `run'from /Users/kelp/.rvm/gems/ /gems/chef-0.9.14/lib/chef/application/knife.rb:121:in `run'from /Users/kelp/.rvm/gems/ /gems/chef-0.9.14/bin/knife:25from /Users/kelp/.rvm/gems/ /bin/knife:19:in `load'from /Users/kelp/.rvm/gems/ /bin/knife:19If I change the server.state line to:server_list << server.state.to_sThen it works. One of my instances seems to be returning an empty state.-kelp
Zoosk Ops
On Thu, Apr 7, 2011 at 6:02 PM, Bryan McLellan < " target="_blank"> > wrote:On Thu, Apr 7, 2011 at 5:55 PM, Travis Cole < " target="_blank"> > wrote:See what is up with that data:
> Hmm, yeah that's interesting.
> If I comment this out:
> server_list << server.state
Chef::Log.info("Server state: #{pp server.state}")
Bryan
Archive powered by MHonArc 2.6.16.