Skip to content

Commit

Permalink
validate: check for empty url (ceph_origin=custom)
Browse files Browse the repository at this point in the history
This checks if `custom_repo_url` is set to an empty string
and makes the playbook fail in that case.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2097680

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit 692bdd0)
  • Loading branch information
guits committed Feb 8, 2023
1 parent 99ccdf1 commit 4c22ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
msg: "You must define 'ceph_custom_repositories' or 'custom_repo_url' when ceph_origin is 'custom'"
when:
- ceph_origin == 'custom'
- custom_repo_url is undefined
- (custom_repo_url is undefined or custom_repo_url == '')
- ceph_custom_repositories is undefined

- name: fail if baseurl is not defined for ceph_custom_repositories
Expand Down

0 comments on commit 4c22ef5

Please sign in to comment.