incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@redhat.com
Subject [PATCH 3/6] client: base64 encode passed-in user data
Date Wed, 28 Sep 2011 22:28:33 GMT
From: David Lutterkort <lutter@redhat.com>


Signed-off-by: David Lutterkort <lutter@redhat.com>
---
 client/lib/deltacloud.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb
index 91e4f5f..fcf6e49 100644
--- a/client/lib/deltacloud.rb
+++ b/client/lib/deltacloud.rb
@@ -290,6 +290,7 @@ module DeltaCloud
 
         params[:realm_id] ||= params[:realm] if params[:realm]
         params[:keyname] ||= params[:key_name] if params[:key_name]
+        params[:user_data] = Base64::encode64(params[:user_data]) if params[:user_data]
 
         if params[:hardware_profile] and params[:hardware_profile].class.eql?(Hash)
           params[:hardware_profile].each do |k,v|
-- 
1.7.6


Mime
View raw message