dict.values() was a list python2 but in python3 it's a view (#24504)

This commit is contained in:
Sloane Hertel 2017-05-12 08:48:16 -04:00 committed by GitHub
parent 97b0448f0b
commit 91b87d4cbb

View file

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