Skip to content

Commit f65bf8e

Browse files
committed
Use only token to query the RBAC
1 parent b6d69c3 commit f65bf8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ros/lib/kessel/kessel_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def default_workspace(self):
124124
LOG.info(f"Fetching default workspace from RBAC API: {rbac_workspaces_url}")
125125

126126
try:
127-
access_token = auth_credentials.get_token()
127+
token_result = auth_credentials.get_token()
128+
access_token = token_result[0]
128129
headers = {
129130
"authorization": f"Bearer {access_token}",
130131
"x-rh-rbac-org-id": str(self.org_id)

0 commit comments

Comments
 (0)