I expect the provider to be created successfully since CM supports space characters in provider names.
ACTUAL RESULTS
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.connection.ConnectionError: URL can't contain control characters. "/api/device/v1/providers/vsphere?filter=name+eq+'Provider Demo'" (found at least ' ')
fatal: [192.0.2.0]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/ubuntu/.ansible/tmp/ansible-local-274766q_osn66e/ansible-tmp-1712596246.1983263-274769-94838128676413/AnsiballZ_cm_next_provider.py\", line 102, in <module>\n _ansiballz_main()\n File \"/home/ubuntu/.ansible/tmp/ansible-local-274766q_osn66e/ansible-tmp-1712596246.1983263-274769-94838128676413/AnsiballZ_cm_next_provider.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/ubuntu/.ansible/tmp/ansible-local-274766q_osn66e/ansible-tmp-1712596246.1983263-274769-94838128676413/AnsiballZ_cm_next_provider.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.f5networks.next.plugins.modules.cm_next_provider', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_provider.py\", line 566, in <module>\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_provider.py\", line 559, in main\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_provider.py\", line 344, in exec_module\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_provider.py\", line 356, in present\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_provider.py\", line 426, in exists\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/module_utils/client.py\", line 21, in wrap\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible_collections/f5networks/next/plugins/module_utils/client.py\", line 44, in get\n File \"/tmp/ansible_cm_next_provider_payload_7bipmk0f/ansible_cm_next_provider_payload.zip/ansible/module_utils/connection.py\", line 195, in __rpc__\nansible.module_utils.connection.ConnectionError: URL can't contain control characters. \"/api/device/v1/providers/vsphere?filter=name+eq+'Provider Demo'\" (found at least ' ')\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
COMPONENT NAME
f5networks.next.cm_next_provider
Environment
ANSIBLE VERSION
BIGIP VERSION
CONFIGURATION
"N/A"
OS / ENVIRONMENT
"N/A"
SUMMARY
Using a provider name that contains a space character results in failure.
STEPS TO REPRODUCE
EXPECTED RESULTS
I expect the provider to be created successfully since CM supports space characters in provider names.
ACTUAL RESULTS