Fix nodesetstate declaration.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2008-04-15 14:24:16 +00:00
parent a8119c9a36
commit b47ce88179

View File

@ -39,7 +39,7 @@ sub writescript {
if (scalar(@_) eq 4) { shift; } #Discard self
my $node = shift;
my $scriptfile = shift;
my $nodesetstate = shift; # install or netboot
$::nodesetstate = shift; # install or netboot
my $script;
open($script,">",$scriptfile);
@ -119,8 +119,8 @@ sub makescript {
push @scriptd, "export OSVER ARCH PROFILE\n";
push @scriptd, 'PATH=`dirname $0`:$PATH'."\n";
push @scriptd, "export PATH\n";
if ($nodesetstate) {
push @scriptd, "NODESETSTATE=".$nodesetstate."\n";
if ($::nodesetstate) {
push @scriptd, "NODESETSTATE=".$::nodesetstate."\n";
push @scriptd, "export NODESETSTATE\n";
}