Skip to content

Commit

Permalink
fix(install.sls): fix salt-lint errors
Browse files Browse the repository at this point in the history
```bash
Examining prometheus/archive/alternatives/install.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
prometheus/archive/alternatives/install.sls:21
    - name: update-alternatives --install {{ p.dir.basedir }}/{{ name }} prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} {{p.linux.altpriority}}

[204] Lines should be no longer that 160 chars
prometheus/archive/alternatives/install.sls:50
    - name: update-alternatives --install /usr/local/bin/{{ b }} prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} {{ p.linux.altpriority }}
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent ff96b7d commit 85c7fce
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions prometheus/archive/alternatives/install.sls
Expand Up @@ -18,7 +18,10 @@ include:
prometheus-archive-alternatives-install-{{ name }}-home-cmd-run:
cmd.run:
- name: update-alternatives --install {{ p.dir.basedir }}/{{ name }} prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} {{p.linux.altpriority}}
- name: |
update-alternatives --install {{ p.dir.basedir }}/{{ name }} \
prometheus-{{ name }}-home {{ p.dir.basedir }}/{{ bundle }} \
{{ p.linux.altpriority }}
- watch:
- archive: prometheus-archive-install-{{ name }}-archive-extracted
Expand Down Expand Up @@ -47,7 +50,10 @@ prometheus-archive-alternatives-install-{{ name }}-home-alternatives-set:
prometheus-archive-alternatives-install-{{ name }}-cmd-run-{{ b }}-alternative:
cmd.run:
- name: update-alternatives --install /usr/local/bin/{{ b }} prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} {{ p.linux.altpriority }}
- name: |
update-alternatives --install /usr/local/bin/{{ b }} \
prometheus-{{ name }}-{{ b }} {{ p.dir.basedir }}/{{ bundle }}/{{ b }} \
{{ p.linux.altpriority }}
- require:
- cmd: prometheus-archive-alternatives-install-{{ name }}-home-cmd-run
Expand Down

0 comments on commit 85c7fce

Please sign in to comment.