]> 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 19:21:32 +0000 (15:21 -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>
(cherry picked from commit 6dcfdf17d43635fcd0dc658c199702945a1228dd)

roles/ceph-container-common/tasks/registry.yml

index c65dcf90ba5ae250ebe05ad67588fb53da53f127..4fa2715b1bf909b715c9fb45079d8e7e51c79c5f 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: