From 889ba66d528ed782de341f846fea32a7451acd8b Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 5 Dec 2024 11:31:11 -0400 Subject: [PATCH] Use `ops.main` instead of `ops.main.main`, the latter is deprecated --- src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index c60457e..0509fb0 100755 --- a/src/charm.py +++ b/src/charm.py @@ -24,9 +24,9 @@ generate_certificate, generate_private_key, ) +from ops import main from ops.charm import ActionEvent, CharmBase, CollectStatusEvent from ops.framework import EventBase -from ops.main import main from ops.model import ActiveStatus, BlockedStatus, SecretNotFoundError from constants import (