Fixed a bug where a cloud service name wasn't converted to a storage account 
name properly and fixed a bug in checking the cloud storage name uniqueness 
where an invalid service name would cause a bad request and would return None 
causing it to look like the storage account already existed, even if it did not


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

Branch: refs/heads/trunk
Commit: 123dda8d2202b2ebd84f23e7ec3c43d0710a585f
Parents: ef5b24f
Author: Michael Bennett <[email protected]>
Authored: Mon Nov 24 11:03:58 2014 -0500
Committer: Michael Bennett <[email protected]>
Committed: Mon Nov 24 11:03:58 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/123dda8d/libcloud/compute/drivers/azure.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure.py 
b/libcloud/compute/drivers/azure.py
index 65cd0aa..b43ba82 100644
--- a/libcloud/compute/drivers/azure.py
+++ b/libcloud/compute/drivers/azure.py
@@ -559,7 +559,7 @@ class AzureNodeDriver(NodeDriver):
         if ex_storage_service_name is None:
             ex_storage_service_name = ex_cloud_service_name
             ex_storage_service_name = re.sub(
-                ur'[\W_]+',
+                ur'[\W_-]+',
                 u'',
                 ex_storage_service_name.lower(),
                 flags=re.UNICODE
@@ -1094,6 +1094,8 @@ class AzureNodeDriver(NodeDriver):
             ),
             AvailabilityResponse
         )
+
+        self.raise_for_response(_check_availability, 200)
                 
         return _check_availability.result
 

Reply via email to