Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using comment variable on fmgr_firewall_address #11

Closed
CyrielRct opened this issue Oct 27, 2020 · 3 comments
Closed

Using comment variable on fmgr_firewall_address #11

CyrielRct opened this issue Oct 27, 2020 · 3 comments
Labels
bug Something isn't working fixed

Comments

@CyrielRct
Copy link

Hello,
I'm trying to specify the comment on firewall_address object. According to the exemple the comment field seems to be a string
firewall_address: allow-routing: disable associated-interface: any # cache-ttl: <value of integer> # color: <value of integer> # comment: <value of string>

source : https://github.com/fortinet-ansible-dev/fortimanager-playbook-example/blob/2.0.0/src/fmgr_firewall_address.yml

But when I'm specifying the comment string I'm getting the following error who tells me to use dictionary object instead of string :

"msg": "argument comment is of type <type 'str'> found in 'firewall_address'. and we were unable to convert to dict: dictionary requested, could not parse JSON or key=value"

it doesn't make any sens for me that comment is based on dict object !? but if it's the case what's the structure of it ?
Thank you

@chillancezen
Copy link

hi @CyrielRct , thank you so much for using FortiManager collection.

we've fixed this issue, and will be available in next patch very soon.

meanwhile, you can still use string in your playbook by setting bypass_validation to True.

we will keep you updated once new patch release is ready, please let us know if you have any issues.

thanks again.
Link

@chillancezen chillancezen reopened this Oct 28, 2020
@CyrielRct
Copy link
Author

Thank you for your quick answer :)
Nice cat btw ;)

@chillancezen chillancezen added bug Something isn't working fixed labels Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants