From 8a4d6577a14f927799f5beee960ae44ec9855267 Mon Sep 17 00:00:00 2001 From: Emil Palm Date: Wed, 27 Aug 2014 11:07:19 +0200 Subject: [PATCH] Always return a list even if its empty. --- cloud/ec2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/ec2 b/cloud/ec2 index f8e9d791bb8..cb14d9b851f 100644 --- a/cloud/ec2 +++ b/cloud/ec2 @@ -660,7 +660,7 @@ def enforce_count(module, ec2): changed = None checkmode = False - instance_dict_array = None + instance_dict_array = [] changed_instance_ids = None if len(instances) == exact_count: