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

refactor: Use ops.main instead of ops.main.main, the latter is deprecated #275

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

DanielArndt
Copy link
Member

This should remove the following deprecation warning:

unit-self-signed-certificates-0: 15:23:29 WARNING unit.self-signed-certificates/0.update-status /var/lib/juju/agents/unit-self-signed-certificates-0/charm/./src/charm.py:525: DeprecationWarning: Calling `ops.main.main()` is deprecated, call `ops.main()` instead

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that validate the behaviour of the software
  • I validated that new and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have bumped the version of the library

@DanielArndt DanielArndt marked this pull request as ready for review December 5, 2024 15:36
@DanielArndt DanielArndt requested a review from a team as a code owner December 5, 2024 15:36
@DanielArndt DanielArndt merged commit 54f2e2f into main Dec 5, 2024
11 checks passed
@DanielArndt DanielArndt deleted the ops-main branch December 5, 2024 17:23
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.

2 participants