Explorar el Código

Use set for tags

master
Ricardo Branco hace 5 años
padre
commit
13f01e3b22
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py Ver fichero

@@ -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…
Cancelar
Guardar