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.