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

[lxd]: fix container_create not creating devices other than of type disk #63997

Merged

Conversation

goapunk
Copy link
Contributor

@goapunk goapunk commented Mar 29, 2023

What does this PR do?

Extract the type argument into device_type so it's not overwritten by container_device_add.

What issues does this PR fix or reference?

Fixes: #63996

Previous Behavior

lxd.container_create wouldn't create devices with type other than disk.

New Behavior

lxd.container_create correctly creates devices with any type.

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

@goapunk goapunk requested a review from a team as a code owner March 29, 2023 11:14
@goapunk goapunk requested review from MKLeb and removed request for a team March 29, 2023 11:14
@goapunk goapunk force-pushed the jd-2023-03-lxd-fix-container_create_devices branch 3 times, most recently from 50fd43f to 18f4b72 Compare March 29, 2023 11:17
@goapunk
Copy link
Contributor Author

goapunk commented Mar 29, 2023

@jochumdev tagging you as you are still listed as maintainer (?).
@Ch3LL follow-up to #63911

@goapunk goapunk force-pushed the jd-2023-03-lxd-fix-container_create_devices branch from 18f4b72 to b161d52 Compare March 29, 2023 12:25
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 test coverage.

salt/modules/lxd.py Outdated Show resolved Hide resolved
@goapunk goapunk force-pushed the jd-2023-03-lxd-fix-container_create_devices branch from b161d52 to 03985c4 Compare April 6, 2023 09:38
@goapunk goapunk requested a review from Ch3LL April 6, 2023 09:40
@goapunk goapunk force-pushed the jd-2023-03-lxd-fix-container_create_devices branch from 03985c4 to 56cab47 Compare April 6, 2023 09:48
@goapunk goapunk force-pushed the jd-2023-03-lxd-fix-container_create_devices branch from 56cab47 to dce1eaf Compare May 31, 2023 14:21
@goapunk
Copy link
Contributor Author

goapunk commented May 31, 2023

@Ch3LL is there anything blocking this from being merged? Do I need to do anything?

@goapunk goapunk temporarily deployed to ci May 31, 2023 14:35 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 14:35 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 14:35 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 14:36 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 14:52 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 15:02 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 16:04 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 16:04 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 16:04 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 16:04 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 16:05 — with GitHub Actions Inactive
@goapunk goapunk temporarily deployed to ci May 31, 2023 16:05 — with GitHub Actions Inactive
@Ch3LL Ch3LL merged commit 8547e63 into saltstack:master May 31, 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.container_create doesn't create devices correctly
2 participants