use getMinions directly
getMinions was patched to expect expression directly
Change-Id: I3de13e58cd5f4077af78081db150e1c7819c4a17
diff --git a/change-config.groovy b/change-config.groovy
index af1fe8b..44832ed 100644
--- a/change-config.groovy
+++ b/change-config.groovy
@@ -16,7 +16,6 @@
def salt = new com.mirantis.mk.Salt()
def saltMaster
-def targetAll = ['expression': TARGET_SERVERS, 'type': 'compound']
def targetTestSubset
def targetLiveSubset
def targetLiveAll
@@ -39,7 +38,7 @@
}
stage('List target servers') {
- minions = salt.getMinions(saltMaster, targetAll)
+ minions = salt.getMinions(saltMaster, TARGET_SERVERS)
if (minions.isEmpty()) {
throw new Exception("No minion was targeted")
}