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
pull/65076/head
rchikatw 5 years ago committed by Abhijeet Kasurde
parent 35cc26f8c0
commit 38d6421425

@ -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…
Cancel
Save