Skip to content
Snippets Groups Projects
Commit 2b4c1702 authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Enhance readability using correct types in run uc

parent c6fa5785
No related branches found
No related tags found
No related merge requests found
...@@ -180,8 +180,8 @@ def start_application(): ...@@ -180,8 +180,8 @@ def start_application():
app_container['image'] = 'soerenhenning/uc' + args.uc_id + '-app:latest' app_container['image'] = 'soerenhenning/uc' + args.uc_id + '-app:latest'
# TODO: acces over name of attribute # TODO: acces over name of attribute
app_container['env'][1]['value'] = str(args.commit_interval_ms) app_container['env'][1]['value'] = str(args.commit_interval_ms)
app_container['resources']['limits']['memory'] = str(args.memory_limit) app_container['resources']['limits']['memory'] = args.memory_limit
app_container['resources']['limits']['cpu'] = str(args.cpu_limit) # cpu limit is already str app_container['resources']['limits']['cpu'] = args.cpu_limit
try: try:
resp = appsApi.create_namespaced_deployment( resp = appsApi.create_namespaced_deployment(
namespace="default", namespace="default",
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment