Merge branch 'wait_function' of github.com:sean-m-sullivan/awx into wait_function

This commit is contained in:
sean-m-sullivan
2020-08-31 15:24:40 -05:00
58 changed files with 1818 additions and 226 deletions

View File

@@ -552,7 +552,7 @@ class TowerAPIModule(TowerModule):
return self.create_if_needed(existing_item, new_item, endpoint, on_create=on_create, item_type=item_type, associations=associations)
def logout(self):
if self.authenticated:
if self.authenticated and self.oauth_token_id:
# Attempt to delete our current token from /api/v2/tokens/
# Post to the tokens endpoint with baisc auth to try and get a token
api_token_url = (