Add missing hostlist support for wwctl nodes

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-09 16:10:51 -07:00
parent 862cc8163f
commit 984c056b03
3 changed files with 5 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ func CobraRunE(vars *variables) func(cmd *cobra.Command, args []string) (err err
results := make(chan power.IPMI, jobcount)
for _, node := range nodes {
if node.Ipmi.Ipaddr.IsUnspecified() {
if node.Ipmi == nil || node.Ipmi.Ipaddr == nil || node.Ipmi.Ipaddr.IsUnspecified() {
wwlog.Error("%s: No IPMI IP address", node.Id())
continue
}