diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-01-06 15:48:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-06 15:48:36 -0500 |
commit | c7ae1238c186f8f91668493fffc9e4700c956366 (patch) | |
tree | a474a6e323ca842f3c1bda02f72a4c54e487c37e /roles | |
parent | c2a5759ff1b6b65023b0706ec0d7561e4026e693 (diff) | |
parent | f46321e65ec1bcf4d0321b120775cce19242fcf9 (diff) | |
download | openshift-c7ae1238c186f8f91668493fffc9e4700c956366.tar.gz openshift-c7ae1238c186f8f91668493fffc9e4700c956366.tar.bz2 openshift-c7ae1238c186f8f91668493fffc9e4700c956366.tar.xz openshift-c7ae1238c186f8f91668493fffc9e4700c956366.zip |
Merge pull request #3054 from sdodson/fix-repo-bools
Fix repo defaults
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_repos/templates/yum_repo.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_repos/templates/yum_repo.j2 b/roles/openshift_repos/templates/yum_repo.j2 index 0ec0045eb..ef2cd6603 100644 --- a/roles/openshift_repos/templates/yum_repo.j2 +++ b/roles/openshift_repos/templates/yum_repo.j2 @@ -2,9 +2,9 @@ [{{ repo.id }}] name={{ repo.name | default(repo.id) }} baseurl={{ repo.baseurl }} -{% set enable_repo = repo.enabled | default(1,True) %} +{% set enable_repo = repo.enabled | default(1) %} enabled={{ 1 if ( enable_repo == 1 or enable_repo == True ) else 0 }} -{% set enable_gpg_check = repo.gpgcheck | default(1,True) %} +{% set enable_gpg_check = repo.gpgcheck | default(1) %} gpgcheck={{ 1 if ( enable_gpg_check == 1 or enable_gpg_check == True ) else 0 }} {% for key, value in repo.iteritems() %} {% if key not in ['id', 'name', 'baseurl', 'enabled', 'gpgcheck'] and value is defined %} |