Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASMTRIAGE-6176: Fix error when filtering for architecture on an empty node list #225

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading