summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-08-31 11:56:12 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-08-31 11:56:12 -0400
commitb26bfc856d9a36ce2c2eb770a3faa38dcbb37207 (patch)
tree9ba68abf14d62b6436ab68728d9a2203a1a4f938
parenta00df5740d98b1ba8aaef07d3f5ad16a12be3219 (diff)
downloadopenshift-b26bfc856d9a36ce2c2eb770a3faa38dcbb37207.tar.gz
openshift-b26bfc856d9a36ce2c2eb770a3faa38dcbb37207.tar.bz2
openshift-b26bfc856d9a36ce2c2eb770a3faa38dcbb37207.tar.xz
openshift-b26bfc856d9a36ce2c2eb770a3faa38dcbb37207.zip
Adding another default to protect against missing name/desc
-rw-r--r--roles/openshift_repos/tasks/main.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_repos/tasks/main.yaml b/roles/openshift_repos/tasks/main.yaml
index 6b3de4dba..f972c0fd9 100644
--- a/roles/openshift_repos/tasks/main.yaml
+++ b/roles/openshift_repos/tasks/main.yaml
@@ -12,7 +12,7 @@
- name: Create any additional repos that are defined
yum_repository:
- description: "{{ item.description | default(item.name) }}"
+ description: "{{ item.description | default(item.name | default(item.id)) }}"
name: "{{ item.name | default(item.id) }}"
baseurl: "{{ item.baseurl }}"
gpgkey: "{{ item.gpgkey | default(omit)}}"