Skip to content

Commit ae7b666

Browse files
authored
fix regression in parse_volume_status (#47)
1 parent 1452d42 commit ae7b666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glustercli/cli/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def parse_volume_status(status_data, volinfo, group_subvols=False):
298298

299299
for brick in vol["bricks"]:
300300
brick_status_data = tmp_brick_status.get(brick["name"], None)
301-
brick_online = tmp_brick_status.get("online", False)
301+
brick_online = brick_status_data.get("online", False)
302302
if brick_status_data is None or not brick_online:
303303
# Default Status
304304
volumes[-1]["bricks"].append({

0 commit comments

Comments
 (0)