Skip to content

Commit 603e924

Browse files
authored
Merge pull request #138 from kang2453/master
fix: add debug print for secret_data in GoogleCloudConnector
2 parents 9decd11 + 1c3b4f1 commit 603e924

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/spaceone/inventory/libs/connector.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def __init__(self, *args, **kwargs):
2929

3030
super().__init__(*args, **kwargs)
3131
secret_data = kwargs.get("secret_data")
32+
print(f'####: {secret_data}')
3233
self.project_id = secret_data.get("project_id")
3334
self.credentials = (
3435
google.oauth2.service_account.Credentials.from_service_account_info(

Diff for: src/spaceone/inventory/service/collector_service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ def collect(self, params):
8787

8888
project_conn = self.locator.get_connector(ProjectConnector, **params)
8989
try:
90+
# _LOGGER.debug(f"[collect] project => {project_id} / {project_state}")
9091
project_info = project_conn.get_project_info()
9192
project_id = project_info["projectId"]
9293
project_state = project_info["state"]
93-
_LOGGER.debug(f"[collect] project => {project_id} / {project_state}")
9494
except Exception as e:
9595
_LOGGER.debug(f"[collect] failed to get project_info => {e}")
9696
return CloudServiceResponse().to_primitive()

0 commit comments

Comments
 (0)