Skip to content

Fix task for when there are no NVMe drives#2205

Merged
technowhizz merged 2 commits intostackhpc/2025.1from
fix-smartmon-2026-01
Mar 11, 2026
Merged

Fix task for when there are no NVMe drives#2205
technowhizz merged 2 commits intostackhpc/2025.1from
fix-smartmon-2026-01

Conversation

@technowhizz
Copy link
Contributor

No description provided.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly refactors an Ansible task to handle cases where the nvme_devices variable may not be defined. The change replaces a when condition with a default filter on the loop variable. This is a more robust and idiomatic approach in Ansible, ensuring the task is gracefully skipped when there are no NVMe drives. The implementation is sound and I have no further suggestions.

Copy link
Member

@Alex-Welsh Alex-Welsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a release note

Copy link
Member

@Alex-Welsh Alex-Welsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release note should technically be wrapped at 80 chars, but there's a bunch that don't follow the rule so I'm happy to merge

@technowhizz technowhizz merged commit 10910bd into stackhpc/2025.1 Mar 11, 2026
20 of 21 checks passed
@technowhizz technowhizz deleted the fix-smartmon-2026-01 branch March 11, 2026 15:37
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