Add toString() method for package name for isPackageInstalled func
Add toString() for package name to avoid situations when package name
is build from Groovy String Builder class and make it happy
with matching Map keys which are Strings.
Change-Id: Ib14241bf7edeb95efc4d77cf9c14520fa9b79db7
Related-Prod: PROD-33899
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 407e457..8c6384c 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -1383,7 +1383,7 @@
if (res) {
for (int i = 0; i < res.size(); i++) {
def key = res.keySet()[i]
- if (!(res[key] instanceof Map && res[key].get(params.packageName, false))) {
+ if (!(res[key] instanceof Map && res[key].get(params.packageName.toString(), false))) {
return false
}
}