Skip to content

Commit

Permalink
Merge pull request #321 from freyes/fix-null-is-undefined
Browse files Browse the repository at this point in the history
Use `is not None` instead of `!= null`.
  • Loading branch information
wolsen authored Feb 15, 2024
2 parents f4736b0 + f5ed6c8 commit 2143b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/handle-constraints-url/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
url: "{{ pip_constraints_url }}"
dest: "{{ constraints_file.path }}"
mode: 0444
when: constraints_file is defined and pip_constraints_url is defined and pip_constraints_url != null and pip_constraints_url|length > 0
when: constraints_file is defined and pip_constraints_url is defined and pip_constraints_url is not None and pip_constraints_url|length > 0

- name: Get stat of temporary constraints file
ansible.builtin.stat:
Expand Down

0 comments on commit 2143b89

Please sign in to comment.