Browse Source

Use set for tags

master
Ricardo Branco 5 years ago
parent
commit
13f01e3b22
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py View File

@@ -103,7 +103,7 @@ def clean_repo(image):
103 103
         return False
104 104
 
105 105
     if args.remove:
106
-        tags = os.listdir(repo + "/_manifests/tags/")
106
+        tags = set(os.listdir(repo + "/_manifests/tags/"))
107 107
         if not tag or len(tags) == 1 and tag in tags:
108 108
             remove(repo)
109 109
             return True

Loading…
Cancel
Save