You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If cert_validation_mode: ignore has been set toazure_rm_privateendpoint module, it doesn't work with azure-mgmt-network 16.0.0(or later).
Since azure-mgmt-network==16.0.0(or later), config attribute is replaced with _config. So I think we need to replace it with _config in the following section:
$ ansible-playbook test.yml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
localhost does not match 'all'
PLAY [localhost] ***********************************************************************************
TASK [azure.azcollection.azure_rm_privateendpoint] *************************************************
changed: [localhost]
PLAY RECAP *****************************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
ACTUAL RESULTS
]$ ansible-playbook test.yml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
localhost does not match 'all'
PLAY [localhost] ***********************************************************************************
TASK [azure.azcollection.azure_rm_privateendpoint] *************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NetworkManagementClient' object has no attribute 'config'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n
File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1656482016.582451-30656-23983966367178/AnsiballZ_azure_rm_privateendpoint.py\", line 107, in <module>\n
_ansiballz_main()\n
File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1656482016.582451-30656-23983966367178/AnsiballZ_azure_rm_privateendpoint.py\", line 99, in _ansiballz_main\n
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n
File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1656482016.582451-30656-23983966367178/AnsiballZ_azure_rm_privateendpoint.py\", line 47, in invoke_module\n
runpy.run_module(mod_name='ansible_collections.azure.azcollection.plugins.modules.azure_rm_privateendpoint', init_globals=dict(_module_fqn='ansible_collections.azure.azcollection.plugins.modules.azure_rm_privateendpoint', _modlib_path=modlib_path),\n
File \"/usr/lib64/python3.9/runpy.py\", line 210, in run_module\n
return _run_module_code(code, init_globals, run_name, mod_spec)\n
File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n
_run_code(code, mod_globals, init_globals,\n
File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n
exec(code, run_globals)\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_privateendpoint.py\", line 341, in <module>\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_privateendpoint.py\", line 337, in main\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_privateendpoint.py\", line 228, in __init__\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py\", line 469, in __init__\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_privateendpoint.py\", line 250, in exec_module\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_privateendpoint.py\", line 302, in get_resource\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py\", line 1056, in network_client\n
File \"/tmp/ansible_azure.azcollection.azure_rm_privateendpoint_payload_139bv_v0/ansible_azure.azcollection.azure_rm_privateendpoint_payload.zip/ansible_collections/azure/azcollection/plugins/module_utils/azure_rm_common.py\", line 940, in get_mgmt_svc_client\n
AttributeError: 'NetworkManagementClient' object has no attribute 'config'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
PLAY RECAP *****************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
The text was updated successfully, but these errors were encountered:
SUMMARY
If
cert_validation_mode: ignore
has been set toazure_rm_privateendpoint
module, it doesn't work withazure-mgmt-network 16.0.0(or later)
.Since azure-mgmt-network==16.0.0(or later),
config
attribute is replaced with_config
. So I think we need to replace it with_config
in the following section:ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Red Hat Enterprise Linux release 8.5 (Ootpa)
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: