Bladeren bron

Merge pull request #169 from rhertzog/gitconfig

Do not try to run git config when git is not available
tags/v0.45.0
Niels Abspoel 6 jaren geleden
bovenliggende
commit
e05d551ac6
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen
  1. +2
    -4
      users/init.sls

+ 2
- 4
users/init.sls Bestand weergeven

@@ -446,10 +446,6 @@ users_googleauth-{{ svc }}-{{ name }}:
{%- endfor %}
{%- endif %}

#
# if not salt['cmd.has_exec']('git')
# fails even if git is installed
#
# this doesn't work (Salt bug), therefore need to run state.apply twice
#include:
# - users
@@ -460,6 +456,7 @@ users_googleauth-{{ svc }}-{{ name }}:
# - sls: users
#
{% if 'gitconfig' in user %}
{% if salt['cmd.has_exec']('git') %}
{% for key, value in user['gitconfig'].items() %}
users_{{ name }}_user_gitconfig_{{ loop.index0 }}:
{% if grains['saltversioninfo'] >= [2015, 8, 0, 0] %}
@@ -477,6 +474,7 @@ users_{{ name }}_user_gitconfig_{{ loop.index0 }}:
{% endif %}
{% endfor %}
{% endif %}
{% endif %}

{% endfor %}


Laden…
Annuleren
Opslaan