Skip to content

Commit 2e012bd

Browse files
authored
Merge pull request #236 from mvdbeek/boolean_when
Don't rely on boolean coercion
2 parents c8f231b + b75c259 commit 2e012bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tasks/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
environment:
4545
PYTHONPATH: null
4646
VIRTUAL_ENV: "{{ galaxy_venv_dir }}"
47-
when: galaxy_additional_venv_packages
47+
when: galaxy_additional_venv_packages | length > 0
4848

4949
remote_user: "{{ galaxy_remote_users.privsep | default(__galaxy_remote_user) }}"
5050
become: "{{ true if galaxy_become_users.privsep is defined else __galaxy_become }}"

tasks/paths.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
owner: "{{ __galaxy_privsep_user_name }}"
2121
group: "{{ __galaxy_user_group }}" #This is set so that the galaxy_user can read the files in the priv_sep dirs. (As priv_sep dirs have defauly perms of 0640.)
2222
mode: "{{ __galaxy_dir_perms }}"
23-
loop: "{{ galaxy_privsep_dirs + galaxy_extra_privsep_dirs }}"
24-
when: item | default(False)
23+
# Skip null, xref https://github.com/galaxyproject/ansible-galaxy/pull/126
24+
loop: "{{ (galaxy_privsep_dirs + galaxy_extra_privsep_dirs) | select | list }}"
2525

2626
- name: Create additional directories
2727
file:

0 commit comments

Comments
 (0)