Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused StoredState #173

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading