CiscoDevNet / FMCAnsible

GNU General Public License v3.0
21 stars 25 forks source link

Fix for section query param #24

Closed 205101-retr0 closed 1 year ago

205101-retr0 commented 1 year ago

When the create function is being called in Issue#14. It's actually doing a GETALL request before to check if the access rule already exists because 2 rules with same names can't exist. While doing this request it's sending the section as query param which is unsupported by GET requests. Hence, the error. Fix was to basically add a check before each request sent if the parameter exists as a valid parameter and then send it.