From 1453474c65b03030373a8102d87ec7fcf96df5bb Mon Sep 17 00:00:00 2001
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Date: Thu, 16 Jan 2020 16:36:27 +0100
Subject: [PATCH] Ansible lint: Variables should have spaces before and after

Change-Id: I70f692f125739b5119c71a554a37b5c21d4164f6
---
 ansible/roles/ceph/tasks/stop.yml                         | 2 +-
 ansible/roles/manila/tasks/fix_cephfs_owner.yml           | 2 +-
 ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ansible/roles/ceph/tasks/stop.yml b/ansible/roles/ceph/tasks/stop.yml
index 90f1318d2..bb4dcdf3d 100644
--- a/ansible/roles/ceph/tasks/stop.yml
+++ b/ansible/roles/ceph/tasks/stop.yml
@@ -11,7 +11,7 @@
 
 - name: Find running ceph-osds containers
   become: true
-  command: "docker ps --filter name=ceph_osd_ --format {% raw %}{{.Names}}{% endraw %}"
+  command: "docker ps --filter name=ceph_osd_ --format '{% raw %}{{ .Names }}{% endraw %}'"
   register: ceph_osd_containers
 
 - name: Stopping ceph-osd container
diff --git a/ansible/roles/manila/tasks/fix_cephfs_owner.yml b/ansible/roles/manila/tasks/fix_cephfs_owner.yml
index 6c6602c46..fed2bf779 100644
--- a/ansible/roles/manila/tasks/fix_cephfs_owner.yml
+++ b/ansible/roles/manila/tasks/fix_cephfs_owner.yml
@@ -47,7 +47,7 @@
 
 - name: Mount cephfs
   become: true
-  command: "docker exec -u 0 manila_share mount -t ceph {{cephfs_addr}} /tmp/cephfs -o name=manila,secret={{ manila_keyring.stdout }}"
+  command: "docker exec -u 0 manila_share mount -t ceph {{ cephfs_addr }} /tmp/cephfs -o name=manila,secret={{ manila_keyring.stdout }}"
   register: mount_cephfs
   changed_when: False
   run_once: True
diff --git a/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml b/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml
index a8ece2360..d2e61578f 100644
--- a/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml
+++ b/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml
@@ -7,6 +7,6 @@
   # Docker bug (https://github.com/moby/moby/issues/11065), this might cause the
   # container to be stopped if we restart Docker or reboot the server as we
   # use the 'unless-stopped' restart policy by default.
-  shell: "kill -HUP `docker inspect -f '{% raw %}{{.State.Pid}}{% endraw %}' nova_scheduler`"
+  shell: "kill -HUP `docker inspect -f '{% raw %}{{ .State.Pid }}{% endraw %}' nova_scheduler`"
   when:
     - inventory_hostname in groups['nova-scheduler']
-- 
GitLab