Add quotes to target when calling salt-cp
Related-Prod: #PROD-35628
Change-Id: I66e7c0daabc0d8a1f900245059b05fce97ee15e8
(cherry picked from commit 9a54e8d8092ebdcc25ee768455c0ff6c4968fbb0)
diff --git a/runtest/orchestrate/tempest.sls b/runtest/orchestrate/tempest.sls
index c0f1b07..3c03013 100644
--- a/runtest/orchestrate/tempest.sls
+++ b/runtest/orchestrate/tempest.sls
@@ -18,7 +18,7 @@
copy_to_target:
cmd.run:
- - name: salt-cp {{ tempest.test_target }} {{ tempest.cfg_dir }}/{{ tempest.cfg_name }} {{ tempest.cfg_dir }}/{{ tempest.cfg_name }}
+ - name: salt-cp '{{ tempest.test_target }}' {{ tempest.cfg_dir }}/{{ tempest.cfg_name }} {{ tempest.cfg_dir }}/{{ tempest.cfg_name }}
- require:
- salt: create_on_target
diff --git a/runtest/tempest.sls b/runtest/tempest.sls
index 2822b1b..f59e0b3 100644
--- a/runtest/tempest.sls
+++ b/runtest/tempest.sls
@@ -17,7 +17,7 @@
copy_to_target:
cmd.run:
- - name: salt-cp {{ tempest.test_target }} {{ tempest.cfg_dir }}/{{ tempest.cfg_name }} {{ tempest.cfg_dir }}/{{ tempest.cfg_name }}
+ - name: salt-cp '{{ tempest.test_target }}' {{ tempest.cfg_dir }}/{{ tempest.cfg_name }} {{ tempest.cfg_dir }}/{{ tempest.cfg_name }}
- require:
- salt: create_on_target
diff --git a/runtest/test_accounts.sls b/runtest/test_accounts.sls
index d00b060..9d64163 100644
--- a/runtest/test_accounts.sls
+++ b/runtest/test_accounts.sls
@@ -101,7 +101,7 @@
{%- if tempest.test_target is defined %}
copy_test_accounts_file:
cmd.run:
- - name: salt-cp {{ tempest.test_target }} {{ tempest.test_accounts.cfg_path}} {{ tempest.test_accounts.cfg_path }}
+ - name: salt-cp '{{ tempest.test_target }}' {{ tempest.test_accounts.cfg_path}} {{ tempest.test_accounts.cfg_path }}
- require:
- file: generate_test_accounts_file
{%- endif %}