xezpeleta/Ansible-Proxmox-inventory

PVE 6.4: keyerror: 'template'

voarsh2 opened this issue · 0 comments

Simply ran: (details removed)
python3 proxmoxinventory.py --list --url --username root@pam --password "" --trust-invalid-certs

And got this:

  File "proxmoxinventory.py", line 447, in <module>
    main()
  File "proxmoxinventory.py", line 432, in main
    data = main_list(options, config_path)
  File "proxmoxinventory.py", line 385, in main_list
    'hosts': proxmox_api.pool(pool).get_members_name(),
  File "proxmoxinventory.py", line 96, in get_members_name
    return  for member in self if (member == 'qemu' or member == 'lxc') and member != 1]
  File "proxmoxinventory.py", line 96, in <listcomp>
    return  for member in self if (member == 'qemu' or member == 'lxc') and member != 1]
KeyError: 'template'