RaSerge / ansible-proxmox-inventory

Refactored ansible proxmox inventory script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: the JSON object must be str, not 'bytes'

Jungo495 opened this issue · comments

Hi! Thanks for script, but i can't make it working:

./proxmox.py --list Traceback (most recent call last): File "./proxmox.py", line 391, in <module> main() File "./proxmox.py", line 376, in main data = main_list(options, config_path) File "./proxmox.py", line 248, in main_list proxmox_api.auth() File "./proxmox.py", line 146, in auth validate_certs=self.options.validate)) File "/usr/lib/python3.5/json/__init__.py", line 268, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.5/json/__init__.py", line 312, in loads s.__class__.__name__)) TypeError: the JSON object must be str, not 'bytes'

Python 3.5.3