diff --git a/charms/slurmctld/src/charm.py b/charms/slurmctld/src/charm.py index 8171f79..f8f5ee7 100755 --- a/charms/slurmctld/src/charm.py +++ b/charms/slurmctld/src/charm.py @@ -389,9 +389,7 @@ def get_jwt_rsa(self) -> Optional[str]: def _resume_nodes(self, nodelist: List[str]) -> None: """Run scontrol to resume the specified node list.""" - nodes = ",".join(nodelist) - update_cmd = f"update nodename={nodes} state=resume" - self._slurmctld.scontrol(*shlex.split(update_cmd)) + self._slurmctld.scontrol("update", f"nodename={','.join(nodelist)}", "state=resume") @property def _cluster_name(self) -> str: