1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes #816 Backups not enabled on new droplets.

Convert backups_enabled string to lowercase. Similar to fix for private
networking.
This commit is contained in:
Edward 2015-02-18 21:23:11 -05:00 committed by Matt Clay
parent 2278a69f7b
commit bad5aafd30

View file

@ -237,7 +237,8 @@ class Droplet(JsonfyMixIn):
@classmethod @classmethod
def add(cls, name, size_id, image_id, region_id, ssh_key_ids=None, virtio=True, private_networking=False, backups_enabled=False): 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() 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) droplet = cls(json)
return droplet return droplet