[CVP] Fix for missing cluster_name variable
Related-PROD: PROD-28579
Change-Id: I22867a4e4cd6e23f0a2975d5ec0b2e2676e2cea5
diff --git a/src/com/mirantis/mcp/Validate.groovy b/src/com/mirantis/mcp/Validate.groovy
index fdda59f..23d974b 100644
--- a/src/com/mirantis/mcp/Validate.groovy
+++ b/src/com/mirantis/mcp/Validate.groovy
@@ -46,6 +46,7 @@
def common = new com.mirantis.mk.Common()
def variables = ''
def entry_point = ''
+ def cluster_name = salt.getPillar(master, 'I@salt:master', '_param:cluster_name')['return'][0].values()[0]
if ( salt.cmdRun(master, target, "docker ps -f name=${name} -q", false, null, false)['return'][0].values()[0] ) {
salt.cmdRun(master, target, "docker rm -f ${name}")
}