-Do not fan out nodeset at tftp build up time

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-03-28 06:15:05 +00:00
parent d8f935df65
commit f9e4ef54a8
3 changed files with 7 additions and 0 deletions

View File

@ -965,6 +965,7 @@ sub setup_TFTP
}
}
$cmdref->{command}->[0] = "nodeset";
$cmdref->{localonly}->[0] = "1";
$cmdref->{arg}->[0] = "enact";
$cmdref->{cwd}->[0] = "/opt/xcat/sbin";
my $plugins_dir=$::XCATROOT.'/lib/perl/xCAT_plugin';

View File

@ -189,6 +189,9 @@ sub preprocess_request {
my $sent = $stab->getAttribs({key=>'sharedtftp'},'value');
if ($sent and ($sent->{value} == 0 or $sent->{value} =~ /no/i)) {
$req->{'_disparatetftp'}=[1];
if ($req->{localonly}->[0]) {
return [$req];
}
return xCAT::Scope->get_broadcast_scope($req,@_);
}
return [$req];

View File

@ -191,6 +191,9 @@ sub preprocess_request {
my $sent = $stab->getAttribs({key=>'sharedtftp'},'value');
if ($sent and ($sent->{value} == 0 or $sent->{value} =~ /no/i)) {
$req->{'_disparatetftp'}=[1];
if ($req->{localonly}->[0]) {
return [$req];
}
return xCAT::Scope->get_broadcast_scope($req,@_);
}
return [$req];