When trying the example in the link below I end up with an error saying duplicate dict key.
[WARNING]: While constructing a mapping from /home/testuser/ansible/createnetobjects.yml, line 15, column 11, found a duplicate dict key (name). Using last defined value only.
[WARNING]: While constructing a mapping from /home/testuser/ansible/createnetobjects.yml, line 15, column 11, found a duplicate dict key (value). Using last defined value only.
[WARNING]: While constructing a mapping from /home/testuser/ansible/createnetobjects.yml, line 15, column 11, found a duplicate dict key (description). Using last defined value only.
[WARNING]: While constructing a mapping from /home/testuser/ansible/createnetobjects.yml, line 15, column 11, found a duplicate dict key (type). Using last defined value only.
After some testing the problem is in fact the format for which the example shows does have duplicate keys. If you modify the the example as below everything works correctly.
Hello,
When trying the example in the link below I end up with an error saying duplicate dict key.
https://github.com/CiscoDevNet/FMCAnsible/blob/main/samples/docs/operations/create_multiple_network_object.md
After some testing the problem is in fact the format for which the example shows does have duplicate keys. If you modify the the example as below everything works correctly.
A corrected version of the example