From c184221b7e8a79a1bc86ec9ac3acd581879619bc Mon Sep 17 00:00:00 2001 From: mthaddon Date: Mon, 27 Nov 2023 13:04:32 +0100 Subject: [PATCH] Remove unused StoredState (#173) --- src/charm.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/charm.py b/src/charm.py index a4a4fdbd..88247ab4 100755 --- a/src/charm.py +++ b/src/charm.py @@ -27,7 +27,7 @@ from charms.nginx_ingress_integrator.v0.nginx_route import require_nginx_route from charms.prometheus_k8s.v0.prometheus_scrape import MetricsEndpointProvider from ops.charm import ActionEvent, CharmBase, HookEvent, PebbleReadyEvent, UpgradeCharmEvent -from ops.framework import EventBase, StoredState +from ops.framework import EventBase from ops.main import main from ops.model import ( ActiveStatus, @@ -49,11 +49,7 @@ class WordpressCharm(CharmBase): - """Charm for WordPress on kubernetes. - - Attrs: - state: Persistent charm state used to store metadata after various events. - """ + """Charm for WordPress on kubernetes.""" class _ReplicaRelationNotReady(Exception): """Replica databag was accessed before peer relations are established.""" @@ -134,8 +130,6 @@ class _ReplicaRelationNotReady(Exception): _DB_CHECK_INTERVAL = 5 _DB_CHECK_TIMEOUT = 60 * 10 - state = StoredState() - def __init__(self, *args, **kwargs): """Initialize the instance.