diff --git a/reframe/core/schedulers/slurm.py b/reframe/core/schedulers/slurm.py index 2cfe8ce96c..50eaf2d0b1 100644 --- a/reframe/core/schedulers/slurm.py +++ b/reframe/core/schedulers/slurm.py @@ -294,12 +294,12 @@ def _check_and_cancel(self, reason_descr): if reason in self._cancel_reasons: if reason == 'ReqNodeNotAvail' and reason_details: - nodes_match = re.match( + node_match = re.match( r'UnavailableNodes:(?P\S+)?', reason_details.strip()) - if nodes_match: + if node_match: node_names = node_match['node_names'] - if nodes_names: + if node_names: # Retrieve the info of the unavailable nodes # and check if they are indeed down nodes = self._get_nodes_by_name(node_names)