Преглед изворни кода

Support repository/image

master
Ricardo Branco пре 6 година
родитељ
комит
f80c9ea405
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3
    3
      clean_registry.py

+ 3
- 3
clean_registry.py Прегледај датотеку

11
 #   - This script may run stand-alone (on local setups) or dockerized (which supports remote Docker setups).
11
 #   - This script may run stand-alone (on local setups) or dockerized (which supports remote Docker setups).
12
 #   - This script is Python 3 only.
12
 #   - This script is Python 3 only.
13
 #
13
 #
14
-# v1.1 by Ricardo Branco
14
+# v1.2 by Ricardo Branco
15
 #
15
 #
16
 # MIT License
16
 # MIT License
17
 #
17
 #
40
 except ImportError:
40
 except ImportError:
41
     error("Please install PyYaml with: pip3 install pyyaml")
41
     error("Please install PyYaml with: pip3 install pyyaml")
42
 
42
 
43
-VERSION = "1.1"
43
+VERSION = "1.2"
44
 
44
 
45
 
45
 
46
 def dockerized():
46
 def dockerized():
189
         if self.container is not None:
189
         if self.container is not None:
190
             self.docker.api.stop(self.container)
190
             self.docker.api.stop(self.container)
191
 
191
 
192
-        images = args.images if args.images else os.listdir(".")
192
+        images = args.images if args.images else map(os.path.dirname, iglob("**/_manifests", recursive=True))
193
 
193
 
194
         rc = 0
194
         rc = 0
195
         for image in images:
195
         for image in images:

Loading…
Откажи
Сачувај