Skip to content

Commit

Permalink
fix parsing of anagrp list
Browse files Browse the repository at this point in the history
Signed-off-by: Leonid Chernin <[email protected]>
  • Loading branch information
leonidc committed Mar 12, 2024
1 parent 28e6d9f commit ba836b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ SPDK_CENTOS_REPO_VER="9.0-21.el9"

# Ceph Cluster
CEPH_CLUSTER_VERSION="${CEPH_VERSION}"
CEPH_BRANCH=ceph-nvmeof-mon
CEPH_SHA=8fe25aced9ea078a1e4dcd3d2ca8866ce00d3028
CEPH_BRANCH=wip-leonidc-nvme-gw-show
CEPH_SHA=bfffaebd95eab44081b01fe6de79f7e13141f06b
CEPH_VSTART_ARGS="--memstore"
CEPH_DEVEL_MGR_PATH=../ceph

Expand Down
6 changes: 3 additions & 3 deletions control/cephutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def get_number_created_gateways(self, pool, group):
self.logger.info(f"nvme-show string: {str} ")
rply = cluster.mon_command(str, b'')
self.logger.info(f"reply \"{rply}\"")

pos = rply[2].find("[")
conv_str = rply[1].decode()
pos = conv_str.find("[")
if pos!= -1:
new_str = rply[2][pos+ len("[") :]
new_str = conv_str[pos+ len("[") :]
pos = new_str.find("]")
new_str = new_str[: pos].strip()
int_str = new_str.split(' ')
Expand Down

0 comments on commit ba836b9

Please sign in to comment.