Skip to content
Snippets Groups Projects
Verified Commit 63f7be43 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

nsfarm/lxd/utils: fix cleanup exception

Yeah it provides dict with fields where we are interested in name. The
rest of the function does that correctly but one line does not.
parent 34ce9029
Branches
No related merge requests found
......@@ -24,7 +24,7 @@ def clean(delta, dry_run=False):
removed = list()
for img in connection.local.images.all():
if not any(alias.startswith("nsfarm/") for alias in img.aliases):
if not any(alias["name"].startswith("nsfarm/") for alias in img.aliases):
continue
last_used = dateutil.parser.parse(
# Special time "0001-01-01T00:00:00Z" means never used so use upload time instead
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment