fix restGet in Salt
Change-Id: I03179ddd77a6c74b581fc179e7c9d0a1c95047e9
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 8ec2979..021a3e5 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -30,12 +30,13 @@
* @param master Salt connection object
*/
def saltLogin(master) {
+ def http = new com.mirantis.mk.Http()
data = [
'username': master.creds.username,
'password': master.creds.password.toString(),
'eauth': 'pam'
]
- authToken = restGet(master, '/login', data)['return'][0]['token']
+ authToken = http.restGet(master, '/login', data)['return'][0]['token']
return authToken
}