Handle gfid tag when producing ansible facts in gluster_heal_info (#65041)
we ignore lines beginning with / or < which will produce the requires json format. Fixes: #65095
This commit is contained in:
parent
35cc26f8c0
commit
38d6421425
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ def get_self_heal_status(name):
|
|||
br_dict['status'] = line.split(":")[1].strip()
|
||||
elif 'Number' in line:
|
||||
br_dict['no_of_entries'] = line.split(":")[1].strip()
|
||||
elif line.startswith('/') or '\n' in line:
|
||||
elif line.startswith('/') or line.startswith('<') or '\n' in line:
|
||||
continue
|
||||
else:
|
||||
br_dict and heal_info.append(br_dict)
|
||||
|
|
Loading…
Reference in a new issue