From 6d21f7673f2188ebe5e8438b5cb89e7d90d68720 Mon Sep 17 00:00:00 2001 From: Bill Sacks Date: Tue, 12 Mar 2024 10:59:06 -0600 Subject: [PATCH] Initialize machine to None This follows the logic in the _v2 version of this function. Resolves ESMCI/cime#4588 --- CIME/XML/machines.py | 1 + 1 file changed, 1 insertion(+) diff --git a/CIME/XML/machines.py b/CIME/XML/machines.py index e3a047d25de..b5c10332acb 100644 --- a/CIME/XML/machines.py +++ b/CIME/XML/machines.py @@ -263,6 +263,7 @@ def _probe_machine_name_one_guess_v3(self, nametomatch): children = [y for x in nodes for y in self.get_children(root=x)] + machine = None for child in children: machtocheck = self.get(child, "MACH") regex_str = self.text(child)