Kaynağa Gözat

Use or instead of if/else

master
Ricardo Branco 6 yıl önce
ebeveyn
işleme
6b01d58a44
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py Dosyayı Görüntüle

185
         if self.container is not None:
185
         if self.container is not None:
186
             self.docker.api.stop(self.container)
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
         exit_status = 0
190
         exit_status = 0
191
         for image in images:
191
         for image in images:

Loading…
İptal
Kaydet