From 9dc84d69d5efcf5ee76eac986d887ebcd10671ba Mon Sep 17 00:00:00 2001 From: endlesstrax Date: Wed, 14 Jul 2021 14:49:23 +0000 Subject: [PATCH] Update required for SDK v1 compatability --- awx/main/credential_plugins/tss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/credential_plugins/tss.py b/awx/main/credential_plugins/tss.py index c96adb5d31..f6b6a8a250 100644 --- a/awx/main/credential_plugins/tss.py +++ b/awx/main/credential_plugins/tss.py @@ -39,7 +39,7 @@ tss_inputs = { tss_plugin = CredentialPlugin( 'Thycotic Secret Server', tss_inputs, - lambda **kwargs: SecretServer( - kwargs['server_url'], PasswordGrantAuthorizer(kwargs['server_url'].rstrip('/') + '/oauth2/token', kwargs['username'], kwargs['password']) - ).get_secret(kwargs['secret_id']), + lambda **kwargs: SecretServer(kwargs['server_url'], PasswordGrantAuthorizer(kwargs['server_url'], kwargs['username'], kwargs['password'])).get_secret( + kwargs['secret_id'] + ), )