You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "foospidy (via GitHub)" <gi...@apache.org> on 2023/04/15 23:42:28 UTC
[GitHub] [libcloud] foospidy opened a new issue, #1893: Azure arm ex_customdata causes json error
foospidy opened a new issue, #1893:
URL: https://github.com/apache/libcloud/issues/1893
## 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: https://github.com/foospidy/libcloud/commit/20df1c327da71d364132ff8b6e8152dd4554aaad
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Azure arm ex_customdata causes json error [libcloud]
Posted by "micafer (via GitHub)" <gi...@apache.org>.
micafer closed issue #1893: Azure arm ex_customdata causes json error
URL: https://github.com/apache/libcloud/issues/1893
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [libcloud] Kami commented on issue #1893: Azure arm ex_customdata causes json error
Posted by "Kami (via GitHub)" <gi...@apache.org>.
Kami commented on issue #1893:
URL: https://github.com/apache/libcloud/issues/1893#issuecomment-1662102264
@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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org