Fixes #581 - digitalocean module cannot create private_networking=true droplets

This commit is contained in:
Ryan Rawson 2015-01-20 16:32:36 -08:00
parent 1668f45447
commit 0162fc525d

View file

@ -236,7 +236,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):
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) droplet = cls(json)
return droplet return droplet