Update proxmox.py

changed opearator to the correc one
This commit is contained in:
standadHD 2022-10-19 20:35:26 +02:00 committed by GitHub
parent 7117718c74
commit 3265c7edc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ def main_list(options, config_path):
results['_meta']['hostvars'][vm]['proxmox_os_version_id'] = system_info.version_id
else:
# IF IP is empty (due DHCP, take hostname instead)
if proxmox_api.openvz_ip_address(node, vm) == False:
if proxmox_api.openvz_ip_address(node, vm) != False:
results['_meta']['hostvars'][vm]['ansible_host'] = proxmox_api.openvz_ip_address(node, vmid)
else:
results['_meta']['hostvars'][vm]['ansible_host'] = proxmox_api.lxc_hostname(node, vmid)