Skip to content
Snippets Groups Projects
Verified Commit 258b4512 authored by Varac's avatar Varac
Browse files

Document parameters for create_droplet()

parent bbb5a9fb
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,19 @@ def create_domain_record(domain: str, name: str, data: str,
def create_droplet(name: str, ssh_key_id: int, region: str = 'ams1',
size: int = 2048, disk: int = 20, image: int = 7):
"""Create a droplet."""
size: int = 2048, disk: int = 20, image: int = 18):
"""Create a droplet.
Required values:
- name (str): Name of the droplet
- ssh_key_id (int): ssh key id to add
Optional values with their default values:
- image (str): 18 (Ubuntu 18.04 x64)
- region (str): 'ams1' (Amsterdam 1)
- size (int): 2048 (2GB RAM)
- disk (int): 20 (20GB disk space)
"""
print('Creating droplet')
data = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment