Skip to content

Commit

Permalink
fix cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Aug 29, 2023
1 parent f083a16 commit 4a77022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cid/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def cleanup(self, **kwargs):
self.qs.discover_datasets()
used_datasets = [x for v in self.qs.dashboards.values() for x in v.datasets.values() ]
for v in list(self.qs._datasets.values()):
if v.arn not in used_datasets and click.confirm(f'Delete unused dataset {v.name}?'):
if v.id not in used_datasets and click.confirm(f'Delete unused dataset {v.name}?'):
logger.info(f'Deleting dataset {v.name} ({v.arn})')
self.qs.delete_dataset(v.id)
logger.info(f'Deleted dataset {v.name} ({v.arn})')
Expand Down

0 comments on commit 4a77022

Please sign in to comment.