fixed in Postage.pm that caused failure in updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3183 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b002e4ca3c
commit
7a347af3b9
@ -214,12 +214,14 @@ sub makescript {
|
||||
push @{$rsp->{data}}, "Unable to open passwd table.";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
}
|
||||
|
||||
my $et = $passwdtab->getAttribs({key => 'system', username => 'root'}, 'password');
|
||||
if ($et and defined ($et->{'password'})) {
|
||||
|
||||
if ($passwdtab) {
|
||||
my $et = $passwdtab->getAttribs({key => 'system', username => 'root'}, 'password');
|
||||
if ($et and defined ($et->{'password'})) {
|
||||
push @scriptd, "ROOTPW=".$et->{'password'}."\n";
|
||||
push @scriptd, "export ROOTPW\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$nodesetstate) { $nodesetstate=getnodesetstate($node);}
|
||||
|
Loading…
Reference in New Issue
Block a user