From a9e7ac0c7c8b7cabf54feb1b53c6a20bf5ec2925 Mon Sep 17 00:00:00 2001 From: Leon <82407168+sed-i@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:46:08 -0500 Subject: [PATCH 1/2] Remove deprecated call to ops.main Signed-off-by: Leon <82407168+sed-i@users.noreply.github.com> --- src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index cefe522f..9c533d92 100755 --- a/src/charm.py +++ b/src/charm.py @@ -65,7 +65,7 @@ UpdateStatusEvent, ) from ops.framework import StoredState -from ops.main import main +from ops import main from ops.model import ( ActiveStatus, BlockedStatus, From bf11adebcb47f663dffb122943ec1ec6a853ad65 Mon Sep 17 00:00:00 2001 From: sed-i <82407168+sed-i@users.noreply.github.com> Date: Wed, 4 Dec 2024 23:02:38 +0000 Subject: [PATCH 2/2] Lint --- src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index 9c533d92..43bc3745 100755 --- a/src/charm.py +++ b/src/charm.py @@ -54,6 +54,7 @@ from lightkube.core.exceptions import ApiError from lightkube.models.core_v1 import ServicePort from lightkube.resources.core_v1 import Service +from ops import main from ops.charm import ( ActionEvent, CharmBase, @@ -65,7 +66,6 @@ UpdateStatusEvent, ) from ops.framework import StoredState -from ops import main from ops.model import ( ActiveStatus, BlockedStatus,