Browse Source

ps only lists running containers

Aanand Prasad 12 years ago
parent
commit
4cc906fcd2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      plum/cli/main.py

+ 2 - 3
plum/cli/main.py

@@ -77,9 +77,8 @@ class TopLevelCommand(Command):
 
 
         Usage: ps
         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):
     def run(self, options):
         """
         """