1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

If the notes don't contain JSON, add the string to the notes key of _meta

This commit is contained in:
Matt Harris 2016-01-24 01:10:47 -08:00
parent e5493fa631
commit f8e73714f6

View file

@ -175,7 +175,10 @@ def main_list(options):
metadata = json.loads(description)
except TypeError:
metadata = {}
# print metadata
except ValueError:
metadata = {
'notes': description
}
if 'groups' in metadata:
# print metadata