Removed some checks for fields that aren't actually required in create_node. Fixed a typo in AzureNodeLocation that incorrectly referenced an object attribute
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c116bf9d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c116bf9d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c116bf9d Branch: refs/heads/trunk Commit: c116bf9d310e25a658c259e1b9111ff13b9e5e7f Parents: 4e1f8f7 Author: Michael Bennett <[email protected]> Authored: Wed Sep 24 16:55:21 2014 -0400 Committer: Michael Bennett <[email protected]> Committed: Wed Nov 19 13:03:15 2014 -0500 ---------------------------------------------------------------------- libcloud/compute/drivers/azure.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/c116bf9d/libcloud/compute/drivers/azure.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/azure.py b/libcloud/compute/drivers/azure.py index fe95f85..4f9d20e 100644 --- a/libcloud/compute/drivers/azure.py +++ b/libcloud/compute/drivers/azure.py @@ -415,9 +415,6 @@ class AzureNodeDriver(NodeDriver): # This mimics the Azure UI behavior. ex_admin_user_id = "azureuser" - if "ex_storage_service_name" not in kwargs: - raise ValueError("ex_storage_service_name is required.") - if "size" not in kwargs: raise ValueError("size is required. ") @@ -427,12 +424,6 @@ class AzureNodeDriver(NodeDriver): if "name" not in kwargs: raise ValueError("name is required.") - if "ex_admin_user_id" not in kwargs: - raise ValueError("ex_cloud_service_name is required.") - - if "ex_admin_user_id" not in kwargs: - raise ValueError("ex_cloud_service_name is required.") - node_list = self.list_nodes(ex_cloud_service_name=ex_cloud_service_name) network_config = ConfigurationSet() network_config.configuration_set_type = 'NetworkConfiguration' @@ -2665,5 +2656,5 @@ class AzureNodeLocation(NodeLocation): return (('<AzureNodeLocation: id=%s, name=%s, country=%s, ' 'driver=%s services=%s virtualMachineRoleSizes=%s >') % (self.id, self.name, self.country, - self.driver.name, ','.join(self.available_service), + self.driver.name, ','.join(self.available_services), ','.join(self.virtual_machine_role_sizes))) \ No newline at end of file
