Bladeren bron

Merge pull request #5279 from kwoodson/repos_accept_name_or_id

Adding another default to protect against missing name/desc
Kenny Woodson 7 jaren geleden
bovenliggende
commit
91a2cac8f5
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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
   - name: Create any additional repos that are defined
     yum_repository:
     yum_repository:
-      description: "{{ item.description | default(item.name) }}"
+      description: "{{ item.description | default(item.name | default(item.id)) }}"
       name: "{{ item.name | default(item.id) }}"
       name: "{{ item.name | default(item.id) }}"
       baseurl: "{{ item.baseurl }}"
       baseurl: "{{ item.baseurl }}"
       gpgkey: "{{ item.gpgkey | default(omit)}}"
       gpgkey: "{{ item.gpgkey | default(omit)}}"