Skip to content

Commit

Permalink
Merge pull request #4596 from billsacks/fix_unbound_machine
Browse files Browse the repository at this point in the history
Initialize machine to None

This follows the logic in the _v2 version of this function, as well as the documentation in "_probe_machine_name_one_guess" ("Returns None if no match is found").

Test suite: None (just manually tested the issue documented in #4588 ).
Test baseline: none
Test namelist changes: none
Test status: bit for bit

Fixes #4588

User interface changes?: N

Update gh-pages html (Y/N)?: N
  • Loading branch information
billsacks authored Mar 12, 2024
2 parents ac1409d + 6d21f76 commit 58d9eb0
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 58d9eb0

Please sign in to comment.