Skip to content

Commit

Permalink
f: apply
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjjung committed Dec 17, 2024
1 parent fed4527 commit db926d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tb_pulumi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ def flatten(item: dict | list | ThunderbirdComponentResource | pulumi.Output | p
# pulumi.info(f'FOUND DICT: {item}')
to_flatten = item.values()
elif isinstance(item, ThunderbirdComponentResource):
pulumi.info(f'FOUND TCR: {item._name} -> {item.resources.values()}')
# pulumi.info(f'FOUND TCR: {item._name} -> {item.resources.values()}')
to_flatten = item.resources.values()
elif isinstance(item, pulumi.Resource) or isinstance(item, pulumi.Output):
pulumi.info(f'FOUND RESOURCE: {item._name}, {str(item.__class__)}')
# pulumi.info(f'FOUND RESOURCE: {item._name}, {str(item.__class__)}')
return [item]
else:
pass
Expand Down
2 changes: 1 addition & 1 deletion tb_pulumi/cloudwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(
# The next two lines are useful for debugging monitoring setups since that logic depends largely on obscure
# class names. These will show all resources and their classes in a project as well as a filtered list of
# those resources correctly detected by the logic above.
pulumi.info(f'All resources: {'\n'.join([f'{res._name}: {str(res.__class__)}' for res in self.project.flatten()])}') # noqa: E501
# pulumi.info(f'All resources: {'\n'.join([f'{res._name}: {str(res.__class__)}' for res in self.project.flatten()])}') # noqa: E501
pulumi.info(f'Supported resources: {supported_resources}')
for res in supported_resources:
shortname = res._name.replace(f'{self.project.name_prefix}-', '') # Make this name shorter, less redundant
Expand Down

0 comments on commit db926d5

Please sign in to comment.