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

'Object does not exist' error when calling firewall_address with '/' in the name #42

Open
kaon1 opened this issue Apr 21, 2022 · 1 comment

Comments

@kaon1
Copy link

kaon1 commented Apr 21, 2022

I'm getting an error when calling fortinet.fortimanager.fmgr_fact firewall address if the name has a '/' character

The object does exist, I am able to pull it up directly on the fortimanager web gui and the API (via Postman)

I'm running fortimanager v6.2.8
galaxy version fortinet.fortimanager:2.1.5
ansible version ansible-playbook 2.9.5
python version python version = 3.6.8

TASK [Get google object] ***************************************************************************************************************************************************************************************************************************************
fatal: [fortimanager01: FAILED! => {"changed": false, "meta": {"request_url": "/pm/config/adom/6_2_ADOM/obj/firewall/address/Google-35.192.0.0/12", "response_code": -3, "response_data": [], "response_message": "Object does not exist",
    - name: Get google object
      fortinet.fortimanager.fmgr_fact:
        facts:
          selector: 'firewall_address'
          params:
            adom: '6_2_ADOM'
            address: "Google-35.192.0.0/12"
      register: google_object
@lix-fortinet
Copy link

Hi @kaon1,

Thank you for raising this issue. Team is working on this issue, and we will fix it in the next release. We will get back to you once it's resolved. Before that, you could add \\ before /. For instance:

    - name: Get google object
      fortinet.fortimanager.fmgr_fact:
        facts:
          selector: 'firewall_address'
          params:
            adom: '6_2_ADOM'
            address: "Google-35.192.0.0\\/12"
      register: google_object

Thanks,
Xing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants