use getMinions directly
getMinions was patched to expect expression directly
Change-Id: I3de13e58cd5f4077af78081db150e1c7819c4a17
diff --git a/openstack-compute-install.groovy b/openstack-compute-install.groovy
index d6b08c3..8d0eb55 100644
--- a/openstack-compute-install.groovy
+++ b/openstack-compute-install.groovy
@@ -12,7 +12,6 @@
def salt = new com.mirantis.mk.Salt()
def saltMaster
-def targetAll = ['expression': TARGET_SERVERS, 'type': 'compound']
def minions
def result
def command
@@ -27,7 +26,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")