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:
rchikatw 2019-11-20 14:59:22 +05:30 committed by Abhijeet Kasurde
parent 35cc26f8c0
commit 38d6421425

View file

@ -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)