Fix formula replacement mechanism

Change-Id: Ia385ffd8a98be65c132cc42c7f42849d41e883c3
diff --git a/tcp_tests/templates/shared-salt.yaml b/tcp_tests/templates/shared-salt.yaml
index 906018a..ee0520c 100644
--- a/tcp_tests/templates/shared-salt.yaml
+++ b/tcp_tests/templates/shared-salt.yaml
@@ -466,9 +466,10 @@
 - description: Replace needed formulas to desired version
   cmd: |
     set -e;
-    {%- for formula in SALT_FORMULAS_REFS.split(' ') %}
-    {% set formula_name = formula.0 %}
-    {% set formula_ref = formula.1 %}
+    {%- for formula_set in SALT_FORMULAS_REFS.split(' ') %}
+    {% set formula = formula_set.split(':') %}
+    {% set formula_name = formula[0] %}
+    {% set formula_ref = formula[1] %}
     {% set formula_dir = '/tmp/salt-formula-' + formula_name %}
     git clone {{ SALT_FORMULAS_REPO }}/{{ formula_name }} {{ formula_dir }} &&
     pushd {{ formula_dir }} &&
@@ -478,8 +479,8 @@
     if [ -d "{{ formula_dir }}" ]; then
     echo "Going to replace packaged formula {{ formula_name }}" &&
     rm -rfv /usr/share/salt-formulas/{env,reclass/service}/{{ formula_name }} &&
-    ln -v -s \"{{ formula_dir }}/{{ formula_name }}\" \"/usr/share/salt-formulas/env/{{ formula_name }}\" &&
-    ln -v -s \"{{ formula_dir }}/metadata/service/\" \"/usr/share/salt-formulas/reclass/service/{{ formula_name }}\";
+    ln -v -s "{{ formula_dir }}/{{ formula_name }}" "/usr/share/salt-formulas/env/{{ formula_name }}" &&
+    ln -v -s "{{ formula_dir }}/metadata/service/" "/usr/share/salt-formulas/reclass/service/{{ formula_name }}";
     else
     echo "Stopped, directory /root/salt-formula-{{ formula_name }} does not exist!";
     fi