summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-09-04 16:00:12 -0400
committerGitHub <noreply@github.com>2017-09-04 16:00:12 -0400
commit91a2cac8f5a5ae438b034e3712525480ce749fa6 (patch)
tree10af3ea44c1d1fd3da67d91d2976efbfefc4b33c
parent2687979a5dd8df82b6843937e2bcc6a76b6b1668 (diff)
parentb26bfc856d9a36ce2c2eb770a3faa38dcbb37207 (diff)
downloadopenshift-91a2cac8f5a5ae438b034e3712525480ce749fa6.tar.gz
openshift-91a2cac8f5a5ae438b034e3712525480ce749fa6.tar.bz2
openshift-91a2cac8f5a5ae438b034e3712525480ce749fa6.tar.xz
openshift-91a2cac8f5a5ae438b034e3712525480ce749fa6.zip
Merge pull request #5279 from kwoodson/repos_accept_name_or_id
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)}}"