Commit 48d3f880 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/js-drone: fix Subscriber naming

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