Fix copying the model into /srv/salt/reclass
Change-Id: I9bdd460b78b27fc1b6dd52b53b27e5015ce70ae6
diff --git a/tcp_tests/templates/shared-salt.yaml b/tcp_tests/templates/shared-salt.yaml
index 5b5dd50..2bb0959 100644
--- a/tcp_tests/templates/shared-salt.yaml
+++ b/tcp_tests/templates/shared-salt.yaml
@@ -126,8 +126,7 @@
# In the day01 image, /srv/salt/reclass directory is already exists, so clone the model into the reclass.tmp directory
export GIT_SSL_NO_VERIFY=true; git clone -b {{ SALT_MODELS_BRANCH }} {{ SALT_MODELS_REPOSITORY }} /srv/salt/reclass.tmp;
- cp -r /srv/salt/reclass.tmp/* /srv/salt/reclass/
- cp -r /srv/salt/reclass.tmp/.git /srv/salt/reclass/
+ rsync -a /srv/salt/reclass.tmp/ /srv/salt/reclass;
pushd /srv/salt/reclass;
git config submodule."classes/system".url "{{ SALT_MODELS_SYSTEM_REPOSITORY }}";