FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CephDevStack.watch(): Ignore zero-count containers · ceph/ceph-devstack@19bf1f5 · GitHub

Repository navigation

Commit 19bf1f5

Browse files
committed
CephDevStack.watch(): Ignore zero-count containers
To allow us to make Ceph build-only Signed-off-by: Zack Cerza <zack@redhat.com>
1 parent 73262f1 commit 19bf1f5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ceph_devstack/resources/ceph/__init__.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ async def remove(self):
176176
async def watch(self):
177177
logger.info("Watching containers; will replace any that are stopped")
178178
containers = []
179-
for kind in (await self.get_containers()).keys():
179+
for kind, count in (await self.get_containers()).items():
180+
if not count > 0:
181+
continue
180182
for name in await self.get_container_names(kind):
181183
containers.append(kind(name=name))
182184
logger.info(f"Watching {containers}")

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL