1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1383: Fixes bug for keypair module

This commit is contained in:
Ruben S. Montero 2012-09-25 22:56:11 +02:00
parent f1bc72ae4c
commit dc5b09d22f

View File

@ -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