Browse Source

Use or instead of if/else

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

+ 1
- 1
clean_registry.py View File

@@ -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:

Loading…
Cancel
Save