Browse Source

Trim whitespace in release url builder macro

master
Sean Johnson 3 years ago
parent
commit
44e4cdf967
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 9FA15B87469EA850
  1. 4
      app/cfdd/_macros.j2
  2. 8
      app/cfdd/install.sls

4
app/cfdd/_macros.j2

@ -1,3 +1,3 @@
{% macro cfdd_build_release_url(template, version, filename) %}
{% macro cfdd_build_release_url(template, version, filename) -%}
{{ template | format(version=version, filename=filename) }}
{% endmacro %}
{%- endmacro %}

8
app/cfdd/install.sls

@ -5,9 +5,11 @@
fetch cfdd binary:
file.managed:
- name: /usr/local/bin/cfdd
- source: {{ urls.binary | yaml_squote }}
- source_hash: {{ urls.checksums | yaml_squote }}
- source_hash_name: {{ package.binary_file | yaml_squote }}
- source: {{ urls.binary | yaml_dquote }}
- source_hash: {{ urls.checksums | yaml_dquote }}
- source_hash_name: {{ package.binary_file | yaml_dquote }}
- user: root
- group: root
- mode: 0755
write systemd cfdd@.service:

Loading…
Cancel
Save