mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Updating to remove auth_type since its not longer required
This commit is contained in:
@@ -32,7 +32,7 @@ class TowerAWXKitModule(TowerModule):
|
|||||||
def authenticate(self):
|
def authenticate(self):
|
||||||
try:
|
try:
|
||||||
if self.oauth_token:
|
if self.oauth_token:
|
||||||
self.connection.login(None, None, token=self.oauth_token, auth_type='Bearer')
|
self.connection.login(None, None, token=self.oauth_token)
|
||||||
self.authenticated = True
|
self.authenticated = True
|
||||||
elif self.username:
|
elif self.username:
|
||||||
self.connection.login(username=self.username, password=self.password)
|
self.connection.login(username=self.username, password=self.password)
|
||||||
|
|||||||
Reference in New Issue
Block a user