Pārlūkot izejas kodu

Use or instead of if/else

master
Ricardo Branco 6 gadus atpakaļ
vecāks
revīzija
6b01d58a44
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py Parādīt failu

@@ -185,7 +185,7 @@ class RegistryCleaner():
185 185
         if self.container is not None:
186 186
             self.docker.api.stop(self.container)
187 187
 
188
-        images = args.images if args.images else map(os.path.dirname, iglob("**/_manifests", recursive=True))
188
+        images = args.images or map(os.path.dirname, iglob("**/_manifests", recursive=True))
189 189
 
190 190
         exit_status = 0
191 191
         for image in images:

Notiek ielāde…
Atcelt
Saglabāt