-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] lxd module imcompatible with pylxd >= 2.2.11 #59514
Comments
we will review a PR if you are willing to submit one! :) |
@goapunk would you be willing to submit a PR? We would also need to account for older versions of the library. If there is an easy way to check for the version we could take that approach, or possibly catch the exception and use the new attribute. |
@Ch3LL I currently can't really say when I will have the time to work on it, so I have to pass for now. |
No worries, thanks for getting back to me :) |
Description
The lxd module uses a hack which overwrites the FileManager class of pylxd. In pylxd >= 2.2.11 this class changed and creating container in salt will fail.
Setup
saltstack + pylxd==2.2.11
Steps to Reproduce the behavior
Create a container through the lxd module
Expected behavior
Creating container should work with pylxd >= 2.2.11
Additional context
The following patch should make it work on 2.2.11 but I did not test it thoroughly. In general getting rid of the hack would be much better.
Related to / Duplicate of #57822
The text was updated successfully, but these errors were encountered: