mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-27 22:38:10 +01:00
Fix for issue #361
Add quick sanity check at start of state, do not attempt to do anything unless salt.gitfs.gitpython exists to check for install_from_source within
This commit is contained in:
parent
9a81ab2f9b
commit
275067afcf
@ -1,5 +1,7 @@
|
|||||||
{% from "salt/map.jinja" import salt_settings with context %}
|
{% from "salt/map.jinja" import salt_settings with context %}
|
||||||
|
|
||||||
|
{% if 'gitfs' in salt_settings and 'gitpython' in salt_settings.gitfs %}
|
||||||
|
|
||||||
{% if salt_settings.gitfs.gitpython.install_from_source %}
|
{% if salt_settings.gitfs.gitpython.install_from_source %}
|
||||||
|
|
||||||
GitPython:
|
GitPython:
|
||||||
@ -12,3 +14,5 @@ python-git:
|
|||||||
- name: {{ salt_settings.python_git }}
|
- name: {{ salt_settings.python_git }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user