From 1d6278059f2522f4707287cd811b76ff335eab96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=B6sche?= Date: Thu, 3 Feb 2022 18:08:48 +0100 Subject: [PATCH] [resotoworker] [fix] Use `/ancestors` during cleanup (#617) --- resotoworker/resotoworker/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resotoworker/resotoworker/cleanup.py b/resotoworker/resotoworker/cleanup.py index d25f0a71de..ef8c7128b7 100644 --- a/resotoworker/resotoworker/cleanup.py +++ b/resotoworker/resotoworker/cleanup.py @@ -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:]->" )