Skip to content

Commit

Permalink
Merge pull request #365 from fultonj/virsh_cephx_quotes
Browse files Browse the repository at this point in the history
edpm_libvirt role should handle quoted cephx keys
  • Loading branch information
openshift-merge-robot authored Sep 25, 2023
2 parents 9999a29 + 9f9e532 commit 161921a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/edpm_libvirt/tasks/virsh-secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
ansible.builtin.command: "podman exec libvirt_virtqemud bash -c 'virsh secret-set-value $FSID --base64 $KEY'"
environment:
FSID: "{{ fsid }}"
KEY: "{{ cephx_key.stdout }}"
KEY: "{{ cephx_key.stdout | regex_replace('\"', '') }}"
when:
- cephx_key.stdout is defined
- cephx_key.stdout | regex_search('^[a-zA-Z0-9+/]{38}==$')
- cephx_key.stdout | regex_replace('\"', '') | regex_search('^[a-zA-Z0-9+/]{38}==$')

0 comments on commit 161921a

Please sign in to comment.