Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Beta API RackspaceServerList #1

Closed
wants to merge 1 commit into from

2 participants

@zeeraw

I don't know if this is the right way to go about it, but I thought I'd do a pull request.

I fixed so that the RackspaceServerList class correctly parses the server info.

@mattray
Owner

Thanks for the pull request, I'm actually coding on this right now and have already fixed that part. If you're in IRC or have some other IM protocol available I'd be happy to collaborate on what I'm doing right now.

@mattray mattray closed this
@zeeraw

Name your Freenode channel of choice :p

@mattray
Owner

I should be easy to find. #ruby-fog, #csbeta, #chef, #chef-hacking and 10 others as 'mattray'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/chef/knife/rackspace_server_list.rb
View
8 lib/chef/knife/rackspace_server_list.rb
@@ -40,10 +40,10 @@ def run
]
connection.servers.all.each do |server|
server_list << server.id.to_s
- server_list << (server.public_ip_address == nil ? "" : server.public_ip_address)
- server_list << (server.addresses["private"].first == nil ? "" : server.addresses["private"].first)
- server_list << (server.flavor_id == nil ? "" : server.flavor_id.to_s)
- server_list << (server.image_id == nil ? "" : server.image_id.to_s)
+ server_list << (server.addresses["public"].first == nil ? "" : server.addresses["public"].first['addr'].to_s)
+ server_list << (server.addresses["private"].first == nil ? "" : server.addresses["private"].first['addr'].to_s)
+ server_list << (server.flavor['id'] == nil ? "" : server.flavor['id'].to_s)
+ server_list << (server.image['id'] == nil ? "" : server.image['id'].to_s)
server_list << server.name
server_list << begin
case server.state.downcase
Something went wrong with that request. Please try again.