Wiredcraft / dopy

Digital Ocean Python
MIT License
95 stars 62 forks source link

DO API V2 removed virtio parameter #64

Open kireal opened 5 years ago

kireal commented 5 years ago

Hi there.

DO team removed virtio parameter from create droplet get request, here.

In virtio parameter should be removed from function new_dropplet v2, example:

        if self.api_version == 2:
            params = {
                'name': str(name),
                'size': str(size_id),
                'image': str(image_id),
                'region': str(region_id),
                'ipv6': str(ipv6).lower(),
                'private_networking': str(private_networking).lower(),
                'backups': str(backups_enabled).lower(),
            }

Thanks.