From 5c17e658cef3a08213e39590c3748c5a57476a70 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 8 May 2012 15:14:15 +0000 Subject: [PATCH] fix resolv_conf bug git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 7247f9712..2389e71e2 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -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