Skip to content

Commit

Permalink
fixed a keypair bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Howe committed Jan 10, 2014
1 parent 8788ccf commit bee2a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ironfan/provider/openstack/keypair.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def self.prepare!(computers)
return if recall? name
Ironfan.step(name, "creating key pair for #{name}", :blue)
result = OpenStack.connection.create_key_pair(name)
private_key = result.body["keyMaterial"]
private_key = result.body["keypair"]["private_key"]
load! # Reload to get the native object
recall(name).private_key = private_key
end
Expand Down

0 comments on commit bee2a0d

Please sign in to comment.