Skip to content

Commit

Permalink
fix(saltbug): fix for strange 'unless: <url>' bug
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Oct 4, 2019
1 parent 8d9d959 commit 5de113d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion iscsi/initiator/make/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ iscsi-initiator-make-file-directory:
iscsi-initiator-make-{{ pkg }}-git-latest:
git.latest:
- onlyif: {{ iscsi.initiator.make.gitrepo }}
- onlyif: {{ iscsi.initiator.make.gitrepo != None }}
- name: {{ iscsi.initiator.make.gitrepo }}/{{ pkg }}.git
- initiator: /home/{{ iscsi.user }}/{{ pkg }}
- user: {{ iscsi.user }}
Expand All @@ -45,6 +45,8 @@ iscsi-initiator-make-{{ pkg }}-cmd-run:
- cwd: /home/{{ iscsi.user }}/{{ pkg }}
- name: {{ iscsi.initiator.make.cmd }}
- runas: {{ iscsi.user }}
- onchanges:
- git: iscsi-initiator-make-{{ pkg }}-git-latest
- require:
- git: iscsi-initiator-make-{{ pkg }}-git-latest
- require_in:
Expand Down
4 changes: 3 additions & 1 deletion iscsi/target/make/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ iscsi-target-make-file-directory:
iscsi-target-make-{{ pkg }}-git-latest:
git.latest:
- onlyif: {{ iscsi.target.make.gitrepo }}
- onlyif: {{ iscsi.target.make.gitrepo != None }}
- name: {{ iscsi.target.make.gitrepo }}/{{ pkg }}.git
- target: /home/{{ iscsi.user }}/{{ pkg }}
- user: {{ iscsi.user }}
Expand All @@ -45,6 +45,8 @@ iscsi-target-make-{{ pkg }}-cmd-run:
- cwd: /home/{{ iscsi.user }}/{{ pkg }}
- name: {{ iscsi.target.make.cmd }}
- runas: {{ iscsi.user }}
- onchanges:
- git: iscsi-target-make-{{ pkg }}-git-latest
- require:
- git: iscsi-target-make-{{ pkg }}-git-latest
- require_in:
Expand Down

0 comments on commit 5de113d

Please sign in to comment.