diff --git a/lib/ironfan/provider/openstack/keypair.rb b/lib/ironfan/provider/openstack/keypair.rb index 40a756c7..6c9b8319 100644 --- a/lib/ironfan/provider/openstack/keypair.rb +++ b/lib/ironfan/provider/openstack/keypair.rb @@ -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