소스 검색

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…
취소
저장