Skip to content

Conversation

@raharper
Copy link
Collaborator

@raharper raharper commented Feb 6, 2025

When querying state from the controller with drives that have existing RAID config, the PhysicalDrive.DG field has the letter 'F' specified. Handle this case by assigning another negative number (-2). Also Allocate a new DGUnknown value (-99) and use this when we encounter another string value that we don't know about rather than crashing.

Add a test case for this scenario.

Additional changes

  • Dropped commented out tests
  • Created const values for the DG properties

When querying state from the controller with drives that have existing
RAID config, the PhysicalDrive.DG field has the letter 'F' specified.
Handle this case by assigning another negative number (-2).  Also
Allocate a new DGUnknown value (-99) and use this when we encounter
another string value that we don't know about rather than crashing.

Add a test case for this scenario.

Additional changes
- Dropped commented out tests
- Created const values for the DG properties

Signed-off-by: Ryan Harper <ryaharpe@cisco.com>
@raharper raharper merged commit d8386ce into project-machine:main Feb 6, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants