libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [4/4] libcloud git commit: Make the API simpler and base64 encode value for the user.
Date Sun, 02 Aug 2015 19:01:02 GMT
Make the API simpler and base64 encode value for the user.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/cf32c276
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/cf32c276
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/cf32c276

Branch: refs/heads/trunk
Commit: cf32c2766e70ec038cf10a678e877c2c1318ca02
Parents: d79cffd
Author: Tomaz Muraus <tomaz@tomaz.me>
Authored: Sun Aug 2 20:54:01 2015 +0200
Committer: Tomaz Muraus <tomaz@tomaz.me>
Committed: Sun Aug 2 20:59:23 2015 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/azure.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/cf32c276/libcloud/compute/drivers/azure.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure.py b/libcloud/compute/drivers/azure.py
index 37c806a..6981630 100644
--- a/libcloud/compute/drivers/azure.py
+++ b/libcloud/compute/drivers/azure.py
@@ -602,6 +602,10 @@ class AzureNodeDriver(NodeDriver):
         network_config = ConfigurationSet()
         network_config.configuration_set_type = 'NetworkConfiguration'
 
+        # Base64 encode custom data if provided
+        if ex_custom_data:
+            ex_custom_data = self._encode_base64(data=ex_custom_data)
+
         # We do this because we need to pass a Configuration to the
         # method. This will be either Linux or Windows.
         if WINDOWS_SERVER_REGEX.search(image.id, re.I):


Mime
View raw message