Use named parameters in new_droplet method call (#4483)
This mirrors the original method signature and guards against any change in order parameter
This commit is contained in:
parent
2ca16dfaad
commit
521c9a2e20
1 changed files with 3 additions and 1 deletions
|
@ -253,7 +253,9 @@ class Droplet(JsonfyMixIn):
|
|||
private_networking_lower = str(private_networking).lower()
|
||||
backups_enabled_lower = str(backups_enabled).lower()
|
||||
ipv6_lower = str(ipv6).lower()
|
||||
json = cls.manager.new_droplet(name, size_id, image_id, region_id, ssh_key_ids, virtio, private_networking_lower, backups_enabled_lower,user_data, ipv6_lower)
|
||||
json = cls.manager.new_droplet(name, size_id, image_id, region_id,
|
||||
ssh_key_ids=ssh_key_ids, virtio=virtio, private_networking=private_networking_lower,
|
||||
backups_enabled=backups_enabled_lower, user_data=user_data, ipv6=ipv6_lower)
|
||||
droplet = cls(json)
|
||||
return droplet
|
||||
|
||||
|
|
Loading…
Reference in a new issue