From dc5b09d22fd6707cde0340c634e54cac76ceb69a Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 25 Sep 2012 22:56:11 +0200 Subject: [PATCH] feature #1383: Fixes bug for keypair module --- src/cloud/ec2/lib/keypair.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloud/ec2/lib/keypair.rb b/src/cloud/ec2/lib/keypair.rb index 55710ef5e9..e253bd5977 100644 --- a/src/cloud/ec2/lib/keypair.rb +++ b/src/cloud/ec2/lib/keypair.rb @@ -48,7 +48,7 @@ module Keypair ######################################################################## def get_keypair if has_elements?(EC2_KP_XPATH) - kp64 = Base64.decode64(user[EC2_KP_XPATH]) + kp64 = Base64.decode64(self[EC2_KP_XPATH]) kp = JSON.parse(kp64) else kp = Hash.new