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:
parent
a8119c9a36
commit
b47ce88179
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user