From 6bf24be5240153604d9c4fbb6f870923513bd42e Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Tue, 28 Nov 2017 15:32:07 -0300 Subject: [PATCH] Removed -e Docker flag in ovsdpdk task Replaced the use of the -e flag in ovs-dpdk handler Change-Id: I3455fc284b455283774b427ca1fec7acfa8c5b91 Closes-Bug: #1734944 --- ansible/roles/ovs-dpdk/handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/ovs-dpdk/handlers/main.yml b/ansible/roles/ovs-dpdk/handlers/main.yml index 4401940c3b..72d7c27c77 100644 --- a/ansible/roles/ovs-dpdk/handlers/main.yml +++ b/ansible/roles/ovs-dpdk/handlers/main.yml @@ -40,7 +40,7 @@ vars: service_name: "ovsdpdk-db" service: "{{ ovsdpdk_services[service_name] }}" - command: "docker exec -e \"CONFIG_FILE={{ container_config_directory }}/ovs-dpdkctl.conf\" {{ service.container_name }} {{ container_config_directory }}/ovs-dpdkctl.sh init" + command: "docker exec {{ service.container_name }} /bin/sh -c 'CONFIG_FILE={{ container_config_directory }}/ovs-dpdkctl.conf {{ container_config_directory }}/ovs-dpdkctl.sh init'" register: status changed_when: status.stdout.find('changed') != -1 when: @@ -77,7 +77,7 @@ vars: service_name: "ovsdpdk-db" service: "{{ ovsdpdk_services[service_name] }}" - command: "docker exec -e \"CONFIG_FILE={{ container_config_directory }}/ovs-dpdkctl.conf\" {{ service.container_name }} {{ container_config_directory }}/ovs-dpdkctl.sh init" + command: "docker exec {{ service.container_name }} /bin/sh -c 'CONFIG_FILE={{ container_config_directory }}/ovs-dpdkctl.conf {{ container_config_directory }}/ovs-dpdkctl.sh init'" register: status changed_when: status.stdout.find('changed') != -1 when: