From a384f75f4d8fb02336c136e52dc1bd1fcfebf273 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 2 May 2017 12:02:51 -0400 Subject: [PATCH] Have rspconfig understand comma delimited args For a multi-node node, use commas to allow user to request other parameters for distinct sub-nodes. --- xCAT-server/lib/xcat/plugins/ipmi.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 38fcf81fb..5c6a9daa2 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -883,6 +883,11 @@ sub setnetinfo { unless (defined($argument)) { return 0; } + my @arglist = split /,/, $argument; + if (scalar @arglist > 1) { + $argument = $arglist[$sessdata->{bmcnum} - 1]; + } + if ($subcommand eq "thermprofile") { return idpxthermprofile($argument); }