amotolani / fmc_collections

Ansible Collections for Cisco FMC API
6 stars 4 forks source link

UNABLE TO ADD NETWORK OBJECTS TO EXISTING NETWORK GROUPS WITH NETWORK LITERALS #2

Closed akola-olawuyi479 closed 3 years ago

akola-olawuyi479 commented 3 years ago

When I try to add a network object to an existing network group with network literals, I get the following response: "changed": false, "invocation": { "module_args": { "name": "DEST_AGENCY_SERVICES-TEST", "state": "present", "fmc": "192.168.201.35", "action": "add", "username": "ansible", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "group_objects": [ "ACCION-EXTRANET-DEST-AGENCY_SERVICES-TEST" ], "auto_deploy": false, "group_literals": null } }, "_ansible_no_log": false }

### Collection with the bug name: Create Network Group objects amotolani.cisco_fmc.network_group: name: "{{ item.name }}" state: absent fmc: "1x.x.x.x" action: add username: "xxxx" password: "xxx" group_literals: "{{ item.ip }}"

### Expected Behaviour It should return a changed=true flag, and then add the network object to the network group.

dadelowo367 commented 3 years ago

Fixed in https://github.com/amotolani/fmc_collections/pull/3