droplets: Set template_id to the id of the new image on 18.04.

size_slug represents the plan the droplet should be created on.
Since the new base droplet is created on the cheaper but more
feature rich new plan we have to update the slug_size as well
to take advantage of the cheaper plan.
This commit is contained in:
Vishnu KS
2020-04-29 00:49:23 +05:30
committed by Tim Abbott
parent 87ff8ada6d
commit c07fb47aab

View File

@@ -147,7 +147,7 @@ def create_droplet(my_token: str, template_id: str, username: str, tags: List[st
name='{}.zulipdev.org'.format(username),
region='nyc3',
image=template_id,
size_slug='2gb',
size_slug='s-1vcpu-2gb',
user_data=user_data,
tags=tags,
backups=False)
@@ -228,7 +228,7 @@ if __name__ == '__main__':
# Broken in two to satisfy linter (line too long)
# curl -X GET -H "Content-Type: application/json" -u <API_KEY>: "https://api.digitaloc
# ean.com/v2/images?page=5" | grep --color=always base.zulipdev.org
template_id = "48106286"
template_id = "63219191"
# get command line arguments
args = parser.parse_args()