Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure arm ex_customdata causes json error #1893

Open
foospidy opened this issue Apr 15, 2023 · 1 comment
Open

Azure arm ex_customdata causes json error #1893

foospidy opened this issue Apr 15, 2023 · 1 comment

Comments

@foospidy
Copy link

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

@Kami
Copy link
Member

Kami commented Aug 2, 2023

@foospidy Thanks for reporting this.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants