Skip to content

Commit

Permalink
Remove cloud var
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Feb 2, 2024
1 parent 9583195 commit b0130ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/aws/resoto_plugin_aws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ def collect_aws(self) -> None:
log.debug("plugin: AWS collecting resources")
aws_config: AwsConfig = Config.aws
assert self.core_feedback, "core_feedback is not set"
cloud = self.root

accounts = get_accounts(self.core_feedback.with_context(cloud.id))
accounts = get_accounts(self.core_feedback.with_context(self.root.id))
if len(accounts) == 0:
log.error("No accounts found")
return
Expand Down Expand Up @@ -123,8 +122,8 @@ def collect_aws(self) -> None:
self.regions(profile=account.profile, partition=account.partition),
ArgumentParser.args,
Config.running_config,
self.core_feedback.with_context(cloud.id, account.dname),
cloud,
self.core_feedback.with_context(self.root.id, account.dname),
self.root,
self.task_data or {},
)
for account in accounts
Expand Down

0 comments on commit b0130ce

Please sign in to comment.