Skip to content

Commit

Permalink
validate: fix bug when using vault
Browse files Browse the repository at this point in the history
since a variable encrypted with vault is no longer a string but a
encrypted object we can't use the filter | length, we have to convert it
to a string before.

Fixes: #6991

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit 6ad7e52)
  • Loading branch information
guits committed Nov 29, 2021
1 parent f5dd0a8 commit de14c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ceph-validate/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
when:
- ceph_docker_registry_auth | bool
- (ceph_docker_registry_username is not defined or ceph_docker_registry_password is not defined) or
(ceph_docker_registry_username | length == 0 or ceph_docker_registry_password | length == 0)
(ceph_docker_registry_username | string | length == 0 or ceph_docker_registry_password | string | length == 0)

- name: validate container service and container package
fail:
Expand Down

0 comments on commit de14c6a

Please sign in to comment.