Skip to content

Commit

Permalink
Merge branch 'main' into apache2-vhost-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mthaddon authored Nov 27, 2023
2 parents 1035985 + c184221 commit 4410363
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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."""
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4410363

Please sign in to comment.