summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelinea-sagar <131447653+delinea-sagar@users.noreply.github.com>2023-06-07 21:36:15 +0200
committerGitHub <noreply@github.com>2023-06-07 21:36:15 +0200
commitd357c1162f3d52389ac9f466cdfe4b14a777f73c (patch)
tree8304e8dfc10e2d4c073be7b5967aa5af3d14236b
parentFix : awx.awx.group preserve hosts fails when there are no hosts (#13913) (diff)
downloadawx-d357c1162f3d52389ac9f466cdfe4b14a777f73c.tar.xz
awx-d357c1162f3d52389ac9f466cdfe4b14a777f73c.zip
Awx.credential plugin.tss (#13985)
-rw-r--r--awx/main/credential_plugins/tss.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/main/credential_plugins/tss.py b/awx/main/credential_plugins/tss.py
index 333596e85d..bb3c9e054c 100644
--- a/awx/main/credential_plugins/tss.py
+++ b/awx/main/credential_plugins/tss.py
@@ -50,7 +50,7 @@ tss_inputs = {
def tss_backend(**kwargs):
- if 'domain' in kwargs:
+ if kwargs.get("domain"):
authorizer = DomainPasswordGrantAuthorizer(kwargs['server_url'], kwargs['username'], kwargs['password'], kwargs['domain'])
else:
authorizer = PasswordGrantAuthorizer(kwargs['server_url'], kwargs['username'], kwargs['password'])