Commit 76fd3aa2 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/js-drone: fix Subscriber naming

parent 54068e1b
...@@ -26,7 +26,7 @@ md5sum = 87968c91591db2c0778f41f7404700c7 ...@@ -26,7 +26,7 @@ md5sum = 87968c91591db2c0778f41f7404700c7
[instance-root] [instance-root]
filename = instance-root.cfg.jinja2 filename = instance-root.cfg.jinja2
md5sum = 2372a1cf3616ccbd97ada047a645cb32 md5sum = 5ad09da22a39ed1f71eda67017235acc
[instance-subscriber] [instance-subscriber]
filename = instance-subscriber.cfg.in filename = instance-subscriber.cfg.in
......
...@@ -16,7 +16,7 @@ recipe = slapos.cookbook:request.serialised ...@@ -16,7 +16,7 @@ recipe = slapos.cookbook:request.serialised
name = Drone{{ id }}_{{ guid }} name = Drone{{ id }}_{{ guid }}
{% else -%} {% else -%}
{% set sr_name = 'subscriber' -%} {% set sr_name = 'subscriber' -%}
name = Subscriber{{ len(parameter_dict['droneList']) - id }}_{{ guid }} name = Subscriber{{ id - len(parameter_dict['droneList']) }}_{{ guid }}
{% endif -%} {% endif -%}
software-url = {{ '/'.join(software_url.split('/')[:-1]) + '/software-%s.cfg' % sr_name }} software-url = {{ '/'.join(software_url.split('/')[:-1]) + '/software-%s.cfg' % sr_name }}
return = instance-path return = instance-path
......
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