Browse Source

Fix clean_revisions() in clean_tag() when -x (remove) is specified

master
Ricardo Branco 6 years ago
parent
commit
8015153b67
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      clean_registry.py

+ 3
- 3
clean_registry.py View File

@@ -11,7 +11,7 @@ NOTES:
11 11
   - This script may run stand-alone (on local setups) or dockerized (which supports remote Docker setups).
12 12
   - This script is Python 3 only.
13 13
 
14
-v1.2.2 by Ricardo Branco
14
+v1.3 by Ricardo Branco
15 15
 
16 16
 MIT License
17 17
 """
@@ -34,7 +34,7 @@ from docker.errors import APIError, NotFound, TLSParameterError
34 34
 
35 35
 import yaml
36 36
 
37
-VERSION = "1.2.2"
37
+VERSION = "1.3"
38 38
 REGISTRY_DIR = "REGISTRY_STORAGE_FILESYSTEM_ROOTREGISTRY_DIR"
39 39
 
40 40
 
@@ -82,7 +82,7 @@ def clean_tag(repo, tag):
82 82
             if index == current:
83 83
                 continue
84 84
             remove(path + index)
85
-        clean_revisions(repo)
85
+    clean_revisions(repo)
86 86
     return True
87 87
 
88 88
 

Loading…
Cancel
Save