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

Drop wait argument from image create #622

Merged
merged 4 commits into from
Jan 9, 2025

Conversation

hamistao
Copy link
Contributor

@hamistao hamistao commented Jan 9, 2025

This removes a useless parameter that was supposed to be removed on 2.3 release.

@hamistao hamistao force-pushed the drop_image_create_wait branch 3 times, most recently from d976f82 to e13a821 Compare January 9, 2025 03:20
@hamistao hamistao requested a review from simondeziel January 9, 2025 03:31
@tomponline
Copy link
Member

@hamistao @simondeziel is this an API break?

@hamistao hamistao changed the title Drop image create wait Drop wait argument from image create Jan 9, 2025
@hamistao
Copy link
Contributor Author

hamistao commented Jan 9, 2025

@tomponline yes, it is. But it should have landed a few releases ago and since then this argument is ignored.

@tomponline
Copy link
Member

@tomponline yes, it is. But it should have landed a few releases ago and since then this argument is ignored.

Hrm, yeah, but we recently had a separate issue with changes that broke the pylxd API, was there consideration given about users who are providing this optional value?

@hamistao
Copy link
Contributor Author

hamistao commented Jan 9, 2025

I believe @simondeziel hasn't seen this yet, so we can discuss further after he does. I think it should be safe to remove it since this parameter is being ignored for the past 8 years.

Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

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

The deprecation warning was added in 2016-11 but as you pointed out @tomponline this is a breaking change. There are quite a few users of that: https://github.com/search?q=pylxd+images.create%28+language%3APython&type=code

How about you drop the first commit (c3d7c00) from your PR? This way, our doc and tests will stop providing this param that defaults to True anyway.

@hamistao hamistao force-pushed the drop_image_create_wait branch from e13a821 to 6f56d45 Compare January 9, 2025 18:53
@hamistao
Copy link
Contributor Author

hamistao commented Jan 9, 2025

@simondeziel Thanks for doing this research, I underestimate how useful GitHub's search can be. This is ready for another review.

@simondeziel simondeziel merged commit 2284441 into canonical:main Jan 9, 2025
16 checks passed
@hamistao hamistao deleted the drop_image_create_wait branch January 10, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants