Skip to content

Commit e96b7aa

Browse files
committed
Appending to an empty list is unnecessary
1 parent 1957070 commit e96b7aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vars/Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ libvirt_vm_extra_packages_efi:
1212
- ovmf
1313

1414
# List of extra packages to install
15-
libvirt_vm_extra_packages: "{{ [] + (libvirt_vm_extra_packages_efi if libvirt_vm_enable_efi_support else []) | unique }}"
15+
libvirt_vm_extra_packages: "{{ libvirt_vm_extra_packages_efi if libvirt_vm_enable_efi_support else [] | unique }}"
1616

1717
# Path to template OVMF efi variable store. A copy will be created
1818
# for each VM created.

vars/RedHat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ libvirt_vm_extra_packages_efi:
1515
- qemu-kvm-ev # Need smm support for secure boot
1616

1717
# List of extra packages to install
18-
libvirt_vm_extra_packages: "{{ [] + (libvirt_vm_extra_packages_efi if libvirt_vm_enable_efi_support else []) | unique }}"
18+
libvirt_vm_extra_packages: "{{ libvirt_vm_extra_packages_efi if libvirt_vm_enable_efi_support else [] | unique }}"
1919

2020
# Path to template OVMF efi variable store. A copy will be created
2121
# for each VM created.
@@ -42,5 +42,5 @@ libvirt_vm_custom_yum_repos_efi:
4242
baseurl: http://mirror.centos.org/$contentdir/$releasever/virt/$basearch/kvm-common/
4343
gpgcheck: yes
4444

45-
libvirt_vm_custom_yum_repos: "{{ [] + (libvirt_vm_custom_yum_repos_efi if libvirt_vm_enable_efi_support else []) | unique }}"
45+
libvirt_vm_custom_yum_repos: "{{ libvirt_vm_custom_yum_repos_efi if libvirt_vm_enable_efi_support else [] | unique }}"
4646

0 commit comments

Comments
 (0)