2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Fix 3787, code error when missing -l option for makedhcp in nodeset (#3788)

This commit is contained in:
Bin Xu 2017-08-28 17:07:20 +08:00 committed by yangsong
parent 4c8c80c809
commit 254cf2b2bf
3 changed files with 3 additions and 3 deletions

View File

@ -816,7 +816,7 @@ sub process_request {
if ($request->{'_disparatetftp'}->[0]) { #reading hint from preprocess_command
xCAT::MsgUtils->trace($verbose_on_off, "d", "grub2: issue makedhcp request");
$sub_req->({ command => ['makedhcp'],
node => \@{ $osimagenodehash{$osimage} } }, $callback);
node => \@{ $osimagenodehash{$osimage} }, arg => ['-l'] }, $callback);
} else {
xCAT::MsgUtils->trace($verbose_on_off, "d", "grub2: issue makedhcp request");
$sub_req->({ command => ['makedhcp'],

View File

@ -656,7 +656,7 @@ sub process_request {
}
if ($do_dhcpsetup) {
my @parameter;
push @parameter, '-l' if ($::request->{'_disparatetftp'}->[0]);
push @parameter, '-l' if ($request->{'_disparatetftp'}->[0]);
xCAT::MsgUtils->trace($verbose_on_off, "d", "petitboot: issue makedhcp request");
$sub_req->({ command => ['makedhcp'],

View File

@ -711,7 +711,7 @@ sub process_request {
}
if ($do_dhcpsetup) {
my @parameter;
push @parameter, '-l' if ($::request->{'_disparatetftp'}->[0]);
push @parameter, '-l' if ($::XNBA_request->{'_disparatetftp'}->[0]);
xCAT::MsgUtils->trace($verbose_on_off, "d", "xnba: issue makedhcp request");
$sub_req->({ command => ['makedhcp'],