Skip to content

Commit

Permalink
[resotoworker] [fix] Use /ancestors during cleanup (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche authored Feb 3, 2022
1 parent 708202f commit 1d62780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resotoworker/resotoworker/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def cleanup():
query_filter = ""
if ArgumentParser.args.collector and len(ArgumentParser.args.collector) > 0:
clouds = '["' + '", "'.join(ArgumentParser.args.collector) + '"]'
query_filter = f"and metadata.ancestors.cloud.id in {clouds} "
query_filter = f"and /ancestors.cloud.reported.id in {clouds} "
query = (
f"desired.clean == true and metadata.cleaned == false {query_filter}<-[0:]->"
)
Expand Down

0 comments on commit 1d62780

Please sign in to comment.