Skip to content

Commit

Permalink
Initialize machine to None
Browse files Browse the repository at this point in the history
This follows the logic in the _v2 version of this function.

Resolves #4588
  • Loading branch information
billsacks authored and ekluzek committed Mar 12, 2024
1 parent 496da7c commit 3f6a586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CIME/XML/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f6a586

Please sign in to comment.