Join GitHub today
Salt-cloud - proxmox driver - returns AttributeError: 'generator' object has no attribute 'next' #49559
Description of Issue/Question
My goal is to create lxc container from salt-cloud with the proxmox driver.
When trying to create lxc container on a proxmox node, the salt-cloud command fails with this error :
According to the pve-api the endpoint should be
I check the
I can create a lxc container with the pve-api using the endpoint
The code return
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
(Provided by running
@garethgreenaway Thank's for your time. I think that the other endpoint is just a renaming from the js webui and the final one is the good one used by the promox driver.
After seeking into the code why I raised this error and comment some part of the validation of
I couldn't get the right properties and the POST data isn't good enough for pve-api.
In fact the exactly same config run well with salt-master-py2 and not well with salt-master-py3.