Commit 8de510db authored by Spiros Koulouzis's avatar Spiros Koulouzis

fixed typo

parent 65aa14d8
......@@ -12,7 +12,7 @@
#line: nameserver 8.8.8.8
- name: Wait for automatic system updates
shell: while sudo fuser /var/lib/dpkg/{{ item }} >/dev/null 2>&1; do sleep 1; done;
shell: while sudo fuser /var/lib/dpkg/{{ item }} >/dev/null 2>&1; do sleep 3; done;
with_items:
- lock
- lock-frontend
......
......@@ -237,6 +237,6 @@ def get_service_urls(vms, tosca_template_json):
docker_name = next(iter(docker))
docker_ports = docker[docker_name]['properties']['ports'][0].split(':')
node_port = int(docker_ports[0])
url = 'https://' + k8_master + ':' + str(node_port)
url = 'http://' + k8_master + ':' + str(node_port)
urls[docker_name] = url
return urls
......@@ -47,12 +47,12 @@ def add_dashboard_url(dashboard_url, tosca_template_dict):
return tosca_template_dict
def add_service_url(serviceurls_url, tosca_template_dict):
def add_service_url(serviceu_urls, tosca_template_dict):
node_templates = tosca_template_dict['topology_template']['node_templates']
for node_name in node_templates:
if node_templates[node_name]['type'] == '"tosca.nodes.ARTICONF.Container.Application.Docker':
if node_templates[node_name]['type'] == 'tosca.nodes.ARTICONF.Container.Application.Docker':
if 'attributes' not in node_templates[node_name]:
node_templates[node_name]['attributes'] = {}
attributes = node_templates[node_name]['attributes']
attributes['service_url'] = serviceurls_url[node_name]
attributes['service_url'] = serviceu_urls[node_name]
return tosca_template_dict
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment