Skip to content

Commit

Permalink
Merge pull request warewulf#1451 from JasonYangShadow/issue/964
Browse files Browse the repository at this point in the history
fix issue that pattern matching broken on node set
  • Loading branch information
mslacken authored Oct 11, 2024
2 parents f102bb9 + f51808b commit f0e4dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Return non-zero exit code on node sub-commands #1421
- Fix panic when getting a long container list before building the container. #1391
- Return non-zero exit code on power sub-commands #1439
- Fix issue that pattern matching broken on `node set` #964

## v4.5.8, 2024-10-01

Expand Down
3 changes: 2 additions & 1 deletion internal/pkg/api/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ func NodeSetParameterCheck(set *wwapiv1.NodeSetParameter, console bool) (nodeDB
fmt.Printf("\n*** WARNING: This command will modify all nodes! ***\n\n")
}
} else {
nodes = node.FilterByName(nodes, set.NodeNames)
expandNodes := hostlist.Expand(set.NodeNames)
nodes = node.FilterByName(nodes, expandNodes)
}

if len(nodes) == 0 {
Expand Down

0 comments on commit f0e4dcc

Please sign in to comment.