Skip to content

Commit 2405eab

Browse files
fix: add debug prints to list workspaces method for token type
1 parent eda7382 commit 2405eab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/spaceone/cost_analysis/manager/identity_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ def get_workspace(self, workspace_id: str, domain_id: str) -> str:
113113
return workspace_id
114114

115115
def list_workspaces(self, params: dict, domain_id: str, token: str = None) -> dict:
116+
print(f"token type: {self.token_type}")
116117
if self.token_type == "SYSTEM_TOKEN" or token:
117118
return self.identity_conn.dispatch(
118119
"Workspace.list", params, x_domain_id=domain_id, token=token
119120
)
120121
else:
122+
print("else in")
121123
return self.identity_conn.dispatch("Workspace.list", params)
122124

123125
def list_workspace_users(self, params: dict, domain_id: str, token: str = None) -> dict:

0 commit comments

Comments
 (0)