Add PGs count to pool list

This commit is contained in:
2021-12-28 21:08:04 -05:00
parent c73939e1c5
commit bbfad340a1
4 changed files with 26 additions and 2 deletions

View File

@ -396,11 +396,13 @@ def getPoolInformation(zkhandler, pool):
tier = zkhandler.read(("pool.tier", pool))
if tier is None:
tier = "default"
pgs = zkhandler.read(("pool.pgs", pool))
pool_information = {
"name": pool,
"volume_count": volume_count,
"tier": tier,
"pgs": pgs,
"stats": pool_stats,
}
return pool_information