mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Fixing regression
This commit is contained in:
@@ -553,7 +553,7 @@ class TowerAPIModule(TowerModule):
|
|||||||
return self.create_if_needed(existing_item, new_item, endpoint, on_create=on_create, item_type=item_type, associations=associations)
|
return self.create_if_needed(existing_item, new_item, endpoint, on_create=on_create, item_type=item_type, associations=associations)
|
||||||
|
|
||||||
def logout(self):
|
def logout(self):
|
||||||
if self.authenticated:
|
if self.authenticated and self.oauth_token_id:
|
||||||
# Attempt to delete our current token from /api/v2/tokens/
|
# Attempt to delete our current token from /api/v2/tokens/
|
||||||
# Post to the tokens endpoint with baisc auth to try and get a token
|
# Post to the tokens endpoint with baisc auth to try and get a token
|
||||||
api_token_url = (
|
api_token_url = (
|
||||||
|
|||||||
Reference in New Issue
Block a user