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

Deprecate local_address #569

Closed
wants to merge 1 commit into from
Closed

Deprecate local_address #569

wants to merge 1 commit into from

Conversation

thedac
Copy link
Contributor

@thedac thedac commented Feb 12, 2021

network-get juju-info is likely to alphanumerically sort addresses and
return the first rather than the "default" binding in the bundle.
Replace all calls to local_address with network-get and an explicit
binding.

Partial-Bug: #1915578

network-get juju-info is likely to alphanumerically sort addresses and
return the first rather than the "default" binding in the bundle.
Replace all calls to local_address with network-get and an explicit
binding.

Partial-Bug: #1915578
Comment on lines +145 to +147
log(
"local_address is deprecated. Please find the call and replace it with "
"a network-get call with an explicit binding.", "WARNING")
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you wanted to be REALLY interesting/nasty here, you could use trace_back and print the stack at this point to tell them where the call is :) It might make the logs a bit messy, but would highlight the issue.

@thedac
Copy link
Contributor Author

thedac commented Jul 29, 2022

Out of date

@thedac thedac closed this Jul 29, 2022
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.

None yet

2 participants