Skip to content

Commit 0e9b51f

Browse files
committed
Default value should be an empty list
1 parent 808573e commit 0e9b51f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
tags: vars
1212

1313
- name: Install custom yum repositories
14-
# Although argument splatting is marked as deprecated:
14+
# Although argument splatting is marked as deprecated:
1515
#
1616
# [DEPRECATION WARNING]: Using variables for task params is unsafe,
1717
# especially if the variables come from an external source like facts. This
@@ -20,7 +20,7 @@
2020
# The core team had a a change of heart and it is actually being preserved:
2121
# https://github.com/ansible/ansible/pull/43798
2222
yum_repository: "{{ item }}"
23-
loop: "{{ libvirt_vm_custom_yum_repos | default({}) }}"
23+
loop: "{{ libvirt_vm_custom_yum_repos | default([]) }}"
2424
become: true
2525

2626
- name: Install custom packages

0 commit comments

Comments
 (0)