grains fix
Change-Id: I0e2f05cae22f8be3bca1d8a509b975bcaa66f945
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index ea38e32..7ab5f58 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -108,9 +108,9 @@
*/
def getGrain(master, target, grain = null) {
if(grain != null) {
- return runSaltCommand(master, 'local', ['expression': target, 'type': 'compound'], 'grain.item', null, [grain])
+ return runSaltCommand(master, 'local', ['expression': target, 'type': 'compound'], 'grains.item', null, [grain])
} else {
- return runSaltCommand(master, 'local', ['expression': target, 'type': 'compound'], 'grain.items')
+ return runSaltCommand(master, 'local', ['expression': target, 'type': 'compound'], 'grains.items')
}
}