*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 03bbd79d authored by Grantner, Tobias's avatar Grantner, Tobias
Browse files

Fixed bug where setup node failes with certain python versions

parent 56642637
No related branches found
No related tags found
2 merge requests!11Allow for the sysadmin to access the provider network, added the ui support...,!6Fixed bug where setup node failes with certain python versions
......@@ -70,7 +70,7 @@
auto_ip: no
timeout: 200
flavor: "{{ flavor | default(core_flavor) }}"
nics: "{{ vms[id].networks | map(attribute='name') | map('regex_replace', '(.*)', 'port-name=' + 'ossdip-' + id + '-\\1') | join(',') }}"
nics: "{{ vms[id].networks | map(attribute='name') | map('regex_replace', '^(.*)$', 'port-name=' + 'ossdip-' + id + '-\\1') | join(',') }}"
security_groups: "{{ vms[id].networks | map(attribute='name') | list }}"
userdata: "{{ lookup('file', '/tmp/' + id + '.cfg') }}"
when: type is undefined
......@@ -85,7 +85,7 @@
auto_ip: no
timeout: 200
flavor: "{{ flavor }}"
nics: "{{ vms[type].networks | map(attribute='name') | map('regex_replace', '(.*)', 'port-name=' + 'ossdip-' + type + '-' + id + '-\\1') | join(',') }}"
nics: "{{ vms[type].networks | map(attribute='name') | map('regex_replace', '^(.*)$', 'port-name=' + 'ossdip-' + type + '-' + id + '-\\1') | join(',') }}"
security_groups: "{{ vms[type].networks | map(attribute='name') | list }}"
userdata: "{{ lookup('file', '/tmp/' + type + '.cfg') }}"
when: type is defined
......
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