From c1dae481e83bdc2606a8a824d36a047f5a09b3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Pizarro?= Date: Tue, 30 Aug 2016 11:56:09 +0200 Subject: [PATCH] Use named parameters in new_droplet method call (#4483) This mirrors the original method signature and guards against any change in order parameter --- lib/ansible/modules/cloud/digital_ocean/digital_ocean.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py index 79a0b89d14a..edd997979a2 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py @@ -253,7 +253,9 @@ class Droplet(JsonfyMixIn): private_networking_lower = str(private_networking).lower() backups_enabled_lower = str(backups_enabled).lower() ipv6_lower = str(ipv6).lower() - json = cls.manager.new_droplet(name, size_id, image_id, region_id, ssh_key_ids, virtio, private_networking_lower, backups_enabled_lower,user_data, ipv6_lower) + json = cls.manager.new_droplet(name, size_id, image_id, region_id, + ssh_key_ids=ssh_key_ids, virtio=virtio, private_networking=private_networking_lower, + backups_enabled=backups_enabled_lower, user_data=user_data, ipv6=ipv6_lower) droplet = cls(json) return droplet