Skip to content

Commit

Permalink
[plugins/gcp][chore] Add more debug logging to GCP project discovery (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Oct 13, 2023
1 parent df75df0 commit 6b6ee30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/gcp/resoto_plugin_gcp/__init__.py
Expand Up @@ -44,9 +44,11 @@ def collect(self) -> None:
cloud = Cloud(id=self.cloud, name="Gcp")

credentials = Credentials.all(feedback)
log.debug(f"Found {len(credentials)} GCP projects total")
if len(Config.gcp.project) > 0:
for project in list(credentials.keys()):
if project not in Config.gcp.project:
log.debug(f"Skipping project {project} because it is not in the configured projects list")
del credentials[project]

if len(credentials) == 0:
Expand Down

0 comments on commit 6b6ee30

Please sign in to comment.