Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SK1Y101 committed Dec 17, 2024
1 parent 833ecc5 commit cfe0ebf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion maas-agent/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def _on_upgrade(self, _event: ops.UpgradeCharmEvent) -> None:

def _on_collect_status(self, e: ops.CollectStatusEvent) -> None:
if (current := MaasHelper.get_installed_channel()) and (current != MAAS_SNAP_CHANNEL):

if self._agents_updating_:
e.add_status(ops.MaintenanceStatus("Awaiting unit refresh"))

Expand Down
3 changes: 1 addition & 2 deletions maas-region/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from charms.data_platform_libs.v0 import data_interfaces as db
from charms.grafana_agent.v0 import cos_agent
from charms.maas_region.v0 import maas
from charms.operator_libs_linux.v2.snap import SnapError
from charms.maas_site_manager_k8s.v0 import enrol
from charms.operator_libs_linux.v2.snap import SnapError
from charms.tempo_coordinator_k8s.v0.charm_tracing import trace_charm
from charms.tempo_coordinator_k8s.v0.tracing import TracingEndpointRequirer, charm_tracing_config
from ops.model import SecretNotFoundError
Expand Down Expand Up @@ -477,7 +477,6 @@ def _on_upgrade_charm(self, _event: ops.UpgradeCharmEvent) -> None:

def _on_collect_status(self, e: ops.CollectStatusEvent) -> None:
if (current := MaasHelper.get_installed_channel()) and (current != MAAS_SNAP_CHANNEL):

if self._agents_updating_:
e.add_status(ops.MaintenanceStatus("Awaiting unit refresh"))

Expand Down

0 comments on commit cfe0ebf

Please sign in to comment.