Skip to content

Commit

Permalink
CASMTRIAGE-6176: Fix error when filtering for architecture on an empt…
Browse files Browse the repository at this point in the history
…y node list
  • Loading branch information
Ryan Bak committed Oct 18, 2023
1 parent 2b21392 commit 43f2a0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Make the include_disabled option work as intended.
- Return the correct object from hsm's get_components call when there are no nodes in the session.
- Fixed session setup errors when there are no valid nodes before filtering for architecture.

## [2.9.0] - 09-29-2023
### Changed
Expand Down
2 changes: 2 additions & 0 deletions src/bos/operators/session_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def _apply_arch(self, nodes, arch):
returns:
A set representing the subset of nodes that match arch, or the logical arch from HSM.
"""
if not nodes:
return nodes
valid_archs = set([arch])
if arch == 'X86':
valid_archs.add('UNKNOWN')
Expand Down

0 comments on commit 43f2a0a

Please sign in to comment.