xezpeleta/Ansible-Proxmox-inventory

Python error with json file

monsieurpouet opened this issue · 0 comments

Hi all,

I've an error with I launch proxmox.py with a json file:

{
"url": "https://proxmox.domain.tld:8006/",
"username": "inventory@pve",
"password": "LALA",
"validateCert": false
}

`$ ./proxmox.py --list --pretty

Traceback (most recent call last):
File "./proxmox.py", line 345, in
main()
File "./proxmox.py", line 330, in main
data = main_list(options, config_path)
File "./proxmox.py", line 213, in main_list
qemu_list = proxmox_api.node_qemu(node)
File "./proxmox.py", line 171, in node_qemu
return self.vms_by_type(node, 'qemu')
File "./proxmox.py", line 165, in vms_by_type
return ProxmoxVMList(self.get('api2/json/nodes/{0}/{1}'.format(node, type)), self.version().get_version())
File "./proxmox.py", line 89, in get_version
return float(self['version'])
ValueError: invalid literal for float(): 6.0-7
`
Python version: 2.7.15+
Proxmox: 6.0.7

Do you have an idea ?