From 91b87d4cbbcb08211f75463ad2162afa1915cd0a Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Fri, 12 May 2017 08:48:16 -0400 Subject: [PATCH] dict.values() was a list python2 but in python3 it's a view (#24504) --- lib/ansible/modules/cloud/amazon/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2.py b/lib/ansible/modules/cloud/amazon/ec2.py index 547bbfe461..163d4c49f4 100644 --- a/lib/ansible/modules/cloud/amazon/ec2.py +++ b/lib/ansible/modules/cloud/amazon/ec2.py @@ -914,7 +914,7 @@ def await_spot_requests(module, ec2, spot_requests, count): if len(spot_req_inst_ids) < count: time.sleep(5) else: - return spot_req_inst_ids.values() + return list(spot_req_inst_ids.values()) module.fail_json(msg="wait for spot requests timeout on %s" % time.asctime())