From e318ef2d706565bac13ad14c1be89ef28d9821a3 Mon Sep 17 00:00:00 2001 From: Ryan Rawson Date: Tue, 20 Jan 2015 16:32:36 -0800 Subject: [PATCH] Fixes #581 - digitalocean module cannot create private_networking=true droplets --- lib/ansible/modules/cloud/digital_ocean/digital_ocean.py | 3 ++- 1 file changed, 2 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 efebf5f1bcf..7e0a432c8dc 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py @@ -236,7 +236,8 @@ class Droplet(JsonfyMixIn): @classmethod def add(cls, name, size_id, image_id, region_id, ssh_key_ids=None, virtio=True, private_networking=False, backups_enabled=False): - json = cls.manager.new_droplet(name, size_id, image_id, region_id, ssh_key_ids, virtio, private_networking, backups_enabled) + private_networking_lower = str(private_networking).lower() + json = cls.manager.new_droplet(name, size_id, image_id, region_id, ssh_key_ids, virtio, private_networking_lower, backups_enabled) droplet = cls(json) return droplet