[Horizon] Fix 'mcp' version check pattern 85/52285/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 18 Feb 2018 19:59:56 +0000 (20:59 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 18 Feb 2018 20:00:57 +0000 (21:00 +0100)
Previous commit used a pattern that is too generic and always matches
the substring 'mcp' vs the node hostname, not only pkg version.

Fixes: 4658acf

Change-Id: Ia4dcbbf7cdfa68574c86459217101d83d61add01
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/states/openstack_ha

index 302de87..4f3760f 100755 (executable)
@@ -66,7 +66,7 @@ salt -I 'horizon:server' state.sls horizon
 salt -I 'nginx:server' state.sls nginx
 
 # workaround for Ubuntu Pike Horizon missing css, FUEL-324
-if ! salt -C 'I@horizon:server and *01*' --out=yaml pkg.version openstack-dashboard | grep -qE 'mcp'; then
+if ! salt -C 'I@horizon:server and *01*' --out=yaml pkg.version openstack-dashboard | grep -qE ':.*mcp'; then
   salt -I 'horizon:server' file.symlink \
     /var/lib/openstack-dashboard/static \
     /usr/share/openstack-dashboard/static