From 38de7d64331e99404723b2dd7b2f28cb43e0cf5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 4 May 2016 14:08:46 +0200 Subject: [PATCH] Include subclient-ID in the password field when authenticating with token. --- pillarsdk/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillarsdk/api.py b/pillarsdk/api.py index ce1adb3..edee7cb 100644 --- a/pillarsdk/api.py +++ b/pillarsdk/api.py @@ -60,7 +60,7 @@ class Api(object): for retrieving the token. """ if token: - credentials = "{0}:".format(token) + credentials = "%s:%s" % (token, self.password) else: credentials = "%s:%s" % (self.username, self.password) return base64.b64encode(credentials.encode('utf-8')).decode('utf-8').replace("\n", "")