vmware_vm_inventory does not use proxy if with_tags: true is set #1794
Labels
bug
This issue/PR relates to a bug
needs_triage
Needs a first human triage before being processed.
python3
SUMMARY
Once
with_tags: true
is used, inventory plugin can't connect to ESXi API since it does not use proxy specified inproxy_host
:proxy_port
.Looks like it creates requests.Session object and does not set proxy:
community.vmware/plugins/inventory/vmware_vm_inventory.py
Line 444 in f05bd04
Could be something like
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_vm_inventory
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu22.04 under WSL2
STEPS TO REPRODUCE
set the following in inventory.vmware.yml file:
run
if set
with_tags: false
everything works as expectedEXPECTED RESULTS
the list of ESXi VMs
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: