diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py index d2946fb845..9cc268758d 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py @@ -307,7 +307,7 @@ class Droplet(JsonfyMixIn): @classmethod def list_all(cls): json = cls.manager.all_active_droplets() - return map(cls, json) + return list(map(cls, json)) class SSH(JsonfyMixIn): @@ -338,7 +338,7 @@ class SSH(JsonfyMixIn): @classmethod def list_all(cls): json = cls.manager.all_ssh_keys() - return map(cls, json) + return list(map(cls, json)) @classmethod def add(cls, name, key_pub):