-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:
		| @@ -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'; | ||||
|   | ||||
| @@ -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]; | ||||
|   | ||||
| @@ -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]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user