You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Azure arm, create_node, the ex_customedata parameter is not properly decoded after base64 encoding. This results in invalid json. When the driver creates the request the error Object of type bytes is not JSON serializable occurs.
Detailed Information
libcloud 3.7.0
Python 3.10.11
Linux ubuntu/debian
To replicate, call azure arm driver.create_node with parameter: ex_customdata=str.encode(deployment_script),
Please feel free to open a PR with a suggested fix (+ ideally a unit test). We've had similar issues in the code in the past, most were related to Python 2 -> Python 3 migration.
Summary
For Azure arm, create_node, the ex_customedata parameter is not properly decoded after base64 encoding. This results in invalid json. When the driver creates the request the error
Object of type bytes is not JSON serializable
occurs.Detailed Information
libcloud 3.7.0
Python 3.10.11
Linux ubuntu/debian
To replicate, call azure arm driver.create_node with parameter:
ex_customdata=str.encode(deployment_script)
,suggested fix: foospidy@20df1c3
The text was updated successfully, but these errors were encountered: