]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
container: quote registry password
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 18 Sep 2020 14:03:13 +0000 (10:03 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 18 Sep 2020 15:14:00 +0000 (11:14 -0400)
When using a quote in the registry password then we have the following
error:

The error was: ValueError: No closing quotation

To fix this we need to use the quote filter.

Close: https://bugzilla.redhat.com/show_bug.cgi?id=1880252

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-container-common/tasks/registry.yml

index 4479c5291b0a38d904c5cb8e7a49d5e1840d039a..a9abb3b982587d3fb7608ac3f4764841d3dd455a 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: container registry authentication
-  command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password }} {{ ceph_docker_registry }}'
+  command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password | quote }} {{ ceph_docker_registry }}'
   changed_when: false
   no_log: true
   environment: