Explorar o código

Adding another default to protect against missing name/desc

Kenny Woodson %!s(int64=7) %!d(string=hai) anos
pai
achega
b26bfc856d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      roles/openshift_repos/tasks/main.yaml

+ 1 - 1
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)}}"