mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
If the notes don't contain JSON, add the string to the notes key of _meta
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user