소스 검색

ps only lists running containers

Aanand Prasad 12 년 전
부모
커밋
4cc906fcd2
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      plum/cli/main.py

+ 2 - 3
plum/cli/main.py

@@ -77,9 +77,8 @@ class TopLevelCommand(Command):
 
         Usage: ps
         """
-        for service in self.service_collection:
-            for container in service.containers:
-                print get_container_name(container)
+        for container in self._get_containers(all=False):
+            print get_container_name(container)
 
     def run(self, options):
         """