Correctly return empty list instead of None.

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

Branch: refs/heads/trunk
Commit: e6c65d30a9303a5faebfa4ec4391a79d2ae60fd0
Parents: 4e77d41
Author: Tomaz Muraus <[email protected]>
Authored: Sun Apr 5 01:26:13 2015 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Sun Apr 5 01:26:13 2015 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/azure.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e6c65d30/libcloud/compute/drivers/azure.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure.py 
b/libcloud/compute/drivers/azure.py
index d0695e9..8f75817 100644
--- a/libcloud/compute/drivers/azure.py
+++ b/libcloud/compute/drivers/azure.py
@@ -310,7 +310,7 @@ class AzureNodeDriver(NodeDriver):
                 for n in data.deployments[0].role_instance_list
             ]
         except IndexError:
-            return None
+            return []
 
     def reboot_node(self,
                     node=None,

Reply via email to