Skip to content

Commit

Permalink
PENG-2364 fix the charm active status message
Browse files Browse the repository at this point in the history
  • Loading branch information
matheushent committed Sep 11, 2024
1 parent 70980ec commit b080423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ def _on_start(self, event):
Start vantage-agent.
Check that we have the needed configuration values and whether the
cluster agent user is created in the slurmctld node, if so
vantage agent user is created in the slurmctld node, if so
start the vantage-agent otherwise defer the event.
"""
if not self.stored.config_available:
event.defer()
return

logger.info("## Starting Cluster agent")
logger.info("## Starting Vantage agent")
self.vantage_agent_ops.start_agent()
self.unit.status = ActiveStatus("cluster agent started")
self.unit.status = ActiveStatus("vantage agent started")

def _on_config_changed(self, event):
"""
Expand Down

0 comments on commit b080423

Please sign in to comment.