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())