From eb64afe779a7db456d51b9486515ee97e762e9c6 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sun, 18 Feb 2018 20:59:56 +0100 Subject: [Horizon] Fix 'mcp' version check pattern 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 --- mcp/config/states/openstack_ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha index 302de8715..4f3760f64 100755 --- a/mcp/config/states/openstack_ha +++ b/mcp/config/states/openstack_ha @@ -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 -- cgit 1.2.3-korg