mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Bugs identified during flake8 testing
This commit is contained in:
committed by
Ryan Petrello
parent
cccd021d8b
commit
51005c0342
@@ -2,7 +2,6 @@ from .plugin import CredentialPlugin, raise_for_status
|
|||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
import requests
|
import requests
|
||||||
import base64
|
|
||||||
pas_inputs = {
|
pas_inputs = {
|
||||||
'fields': [{
|
'fields': [{
|
||||||
'id': 'url',
|
'id': 'url',
|
||||||
@@ -40,7 +39,6 @@ pas_inputs = {
|
|||||||
|
|
||||||
# generate bearer token to authenticate with PAS portal, Input : Client ID, Client Secret
|
# generate bearer token to authenticate with PAS portal, Input : Client ID, Client Secret
|
||||||
def handle_auth(**kwargs):
|
def handle_auth(**kwargs):
|
||||||
tokens = None
|
|
||||||
post_data = {
|
post_data = {
|
||||||
"grant_type": "client_credentials",
|
"grant_type": "client_credentials",
|
||||||
"scope":"siem"
|
"scope":"siem"
|
||||||
|
|||||||
Reference in New Issue
Block a user