Skip to content

Commit

Permalink
CASMTRIAGE-5820: Fix for HSM query handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Bak committed Aug 14, 2023
1 parent c22f153 commit ce67e85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [2.6.2] - 08-14-2023
### Fixed
Fixed HSM query handling to prevent errors from querying with an empty list nodes.

## [2.6.1] - 08-10-2023
### Fixed
Fixed database key migration when upgrading from newer versions of BOS.
Expand Down
2 changes: 1 addition & 1 deletion src/bos/operators/session_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _apply_arch(self, nodes, arch):
"""
valid_archs = set([arch])
if arch == 'X86':
valid_archs.add('Unknown')
valid_archs.add('UNKNOWN')
hsm_filter = HSMState(enabled=True)
return set(hsm_filter.filter_by_arch(nodes, valid_archs))

Expand Down
2 changes: 2 additions & 0 deletions src/bos/operators/utils/clients/hsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def read_all_node_xnames():

def get_components(node_list, enabled=None):
"""Get information for all list components HSM"""
if not node_list:
return []
session = requests_retry_session()
try:
payload = {'ComponentIDs': node_list}
Expand Down

0 comments on commit ce67e85

Please sign in to comment.