瀏覽代碼

Use or instead of if/else

master
Ricardo Branco 6 年之前
父節點
當前提交
6b01d58a44
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py 查看文件

@@ -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…
取消
儲存