Skip to content

Commit b8843f0

Browse files
APM-2488-Updated the test cases-print access token
1 parent 714062d commit b8843f0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/trigger_pipelines.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self):
1414
self.client_id = os.environ["AZ_CLIENT_ID"]
1515
self.client_secret = os.environ["AZ_CLIENT_SECRET"]
1616
self.client_tenant = os.environ["AZ_CLIENT_TENANT"]
17-
self.access_token = self._get_access_token()
17+
self.token = self._get_access_token
1818
self.notify_commit_sha = os.environ["NOTIFY_COMMIT_SHA"]
1919
self.utils_pr_number = os.environ["UTILS_PR_NUMBER"]
2020
self.notify_github_repo = "NHSDigital/api-management-utils"
@@ -105,7 +105,6 @@ def _get_access_token(self):
105105
headers = {"Content-Type": "application/x-www-form-urlencoded"}
106106
res = requests.post(url=url, data=data, headers=headers)
107107
res.raise_for_status()
108-
print("AccessTokenCheck", res.json()["access_token"])
109108
return res.json()["access_token"]
110109

111110
def api_request(

0 commit comments

Comments
 (0)