fix resolv_conf bug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5a51b99724
commit
140f67a0e4
@ -767,14 +767,14 @@ sub nimnodeset
|
||||
#
|
||||
# See if we need to create a resolv_conf resource
|
||||
#
|
||||
my %RChash;
|
||||
%RChash = &chk_resolv_conf($callback, \%objhash, \@nodelist, \%nethash, \%imagehash, \%attrs, \%nodeosi, $subreq);
|
||||
if ( !%RChash ){
|
||||
my $RChash;
|
||||
$RChash = &chk_resolv_conf($callback, \%objhash, \@nodelist, \%nethash, \%imagehash, \%attrs, \%nodeosi, $subreq);
|
||||
if ( !$RChash ){
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not check NIM resolv_conf resource.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
}
|
||||
my %resolv_conf_hash = %RChash;
|
||||
my %resolv_conf_hash = %{$RChash};
|
||||
|
||||
#
|
||||
# Get a list of all nim resource types
|
||||
@ -9682,14 +9682,14 @@ sub mkdsklsnode
|
||||
#
|
||||
# See if we need to create a resolv_conf resource
|
||||
#
|
||||
my %RChash;
|
||||
%RChash = &chk_resolv_conf($callback, \%objhash, \@nodelist, \%nethash, \%imagehash, \%attrs, \%nodeosi, $subreq);
|
||||
if ( !%RChash ){
|
||||
my $RChash;
|
||||
$RChash = &chk_resolv_conf($callback, \%objhash, \@nodelist, \%nethash, \%imagehash, \%attrs, \%nodeosi, $subreq);
|
||||
if ( !$RChash ){
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "Could not check NIM resolv_conf resource.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
}
|
||||
my %resolv_conf_hash = %RChash;
|
||||
my %resolv_conf_hash = %{$RChash};
|
||||
|
||||
#
|
||||
# define and initialize the diskless/dataless nodes
|
||||
|
Loading…
Reference in New Issue
Block a user