From f1333718f9f6c9ce2f549d916dd85f106003cfda Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 09:00:29 +0000 Subject: [PATCH] defined(%hash) is deprecated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 14e62c304..f9b82e356 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -3078,7 +3078,7 @@ sub mknimimage # get the osimage def for the -i option osimage %::imagedef = xCAT::DBobjUtils->getobjdefs(\%objtype, $callback); - if (!defined(%::imagedef)) + if (!(%::imagedef)) { my $rsp; push @{$rsp->{data}}, "Could not get xCAT image definition.\n"; @@ -3601,7 +3601,7 @@ sub mknimimage # # overwrite with anything provided on the command line # - if (defined(%::attrres)) + if (%::attrres) { # add overlay/any additional from the cmd line if provided foreach my $type (keys %::attrres)