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

fix: lxd remove outdated monkey patch #63911

Merged

Conversation

goapunk
Copy link
Contributor

@goapunk goapunk commented Mar 20, 2023

What does this PR do?

What issues does this PR fix or reference?

Fixes: #59514

Previous Behavior

  • The lxd module wouldn't work with pylxd > 2.10
    * Creation of devices (which are not of type disk) would fail

New Behavior

  • The lxd module works with pylxd > 2.10
    * devices of all types can be added

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@goapunk goapunk requested a review from a team as a code owner March 20, 2023 12:15
@goapunk goapunk requested review from whytewolf and removed request for a team March 20, 2023 12:15
@goapunk goapunk changed the title Jd 2023 03 lxd remove outdated monkey patch fix: lxd remove outdated monkey patch Mar 20, 2023
Copy link
Contributor

@Ch3LL Ch3LL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also require a changelog

salt/modules/lxd.py Outdated Show resolved Hide resolved
salt/modules/lxd.py Show resolved Hide resolved
salt/modules/lxd.py Outdated Show resolved Hide resolved
@goapunk goapunk force-pushed the jd-2023-03-lxd-remove-outdated-monkey-patch branch from 6a8ecef to 4529501 Compare March 21, 2023 09:45
@goapunk
Copy link
Contributor Author

goapunk commented Mar 21, 2023

I added changelogs for both fixes

@goapunk goapunk requested review from Ch3LL and removed request for whytewolf March 21, 2023 09:46
salt/modules/lxd.py Outdated Show resolved Hide resolved
@goapunk goapunk force-pushed the jd-2023-03-lxd-remove-outdated-monkey-patch branch 2 times, most recently from ccbb04b to 69964e0 Compare March 23, 2023 15:01
@goapunk goapunk force-pushed the jd-2023-03-lxd-remove-outdated-monkey-patch branch 2 times, most recently from ae1d4a6 to 8110697 Compare March 23, 2023 15:45
@goapunk goapunk requested review from Ch3LL and removed request for Ch3LL March 23, 2023 15:55
Ch3LL
Ch3LL previously approved these changes Mar 23, 2023
@goapunk goapunk changed the title fix: lxd remove outdated monkey patch WIP: fix: lxd remove outdated monkey patch Mar 23, 2023
@goapunk goapunk force-pushed the jd-2023-03-lxd-remove-outdated-monkey-patch branch from 8110697 to 5cd553c Compare March 23, 2023 22:42
@goapunk goapunk changed the title WIP: fix: lxd remove outdated monkey patch fix: lxd remove outdated monkey patch Mar 23, 2023
@goapunk
Copy link
Contributor Author

goapunk commented Mar 23, 2023

@Ch3LL sorry, one more time. I removed the fix from #59646 for now as I can't reproduce it anymore :/ I will probably address it in a new PR if necessary

@Ch3LL Ch3LL merged commit a17239e into saltstack:master Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] lxd module imcompatible with pylxd >= 2.2.11
2 participants