From bad5aafd30e89f41ccbf3c22b86e475b87f9c5de Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 18 Feb 2015 21:23:11 -0500 Subject: [PATCH] Fixes #816 Backups not enabled on new droplets. Convert backups_enabled string to lowercase. Similar to fix for private networking. --- 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 7e0a432c8d..f3a904e8b2 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean.py @@ -237,7 +237,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): 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) + backups_enabled_lower = str(backups_enabled).lower() + json = cls.manager.new_droplet(name, size_id, image_id, region_id, ssh_key_ids, virtio, private_networking_lower, backups_enabled_lower) droplet = cls(json) return droplet