Fixed capacity check in getEquinixMetroWithCapacity method
Bug: PRODX-37318
Change-Id: I44a2a2b45e36b4fe7843648f46a32e1ebb968909
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 76e7d0b..0d8ca68 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -1367,8 +1367,8 @@
i++
}
if (metro.size() > 0) {
- f = metro.size() > 1 ? "${metro[0]},${metro[1]}" : "${metro[0]}"
- sh "${metal} capacity check -P ${nodeType} -f ${f} -q ${nodeCount}"
+ m = metro.size() > 1 ? "${metro[0]},${metro[1]}" : "${metro[0]}"
+ sh "${metal} capacity check -P ${nodeType} -m ${m} -q ${nodeCount}"
}
} catch (Exception e) {
common.errorMsg "Exception: '${e}'"