diff --git a/src/spaceone/inventory/libs/connector.py b/src/spaceone/inventory/libs/connector.py index 2f84815..047b8c3 100644 --- a/src/spaceone/inventory/libs/connector.py +++ b/src/spaceone/inventory/libs/connector.py @@ -29,6 +29,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) secret_data = kwargs.get("secret_data") + print(f'####: {secret_data}') self.project_id = secret_data.get("project_id") self.credentials = ( google.oauth2.service_account.Credentials.from_service_account_info( diff --git a/src/spaceone/inventory/service/collector_service.py b/src/spaceone/inventory/service/collector_service.py index c3232b2..275ebf6 100644 --- a/src/spaceone/inventory/service/collector_service.py +++ b/src/spaceone/inventory/service/collector_service.py @@ -87,10 +87,10 @@ def collect(self, params): project_conn = self.locator.get_connector(ProjectConnector, **params) try: + # _LOGGER.debug(f"[collect] project => {project_id} / {project_state}") project_info = project_conn.get_project_info() project_id = project_info["projectId"] project_state = project_info["state"] - _LOGGER.debug(f"[collect] project => {project_id} / {project_state}") except Exception as e: _LOGGER.debug(f"[collect] failed to get project_info => {e}") return CloudServiceResponse().to_primitive()