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:
parent
e5493fa631
commit
f8e73714f6
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue