From 715a5251b697ef068a81075d7765f06fe38031ab Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 09:13:04 +0000 Subject: [PATCH] defined(@array) is deprecated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14504 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/osdistro.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/osdistro.pm b/xCAT-server/lib/xcat/plugins/osdistro.pm index 7c60b8e92..835c93fe7 100644 --- a/xCAT-server/lib/xcat/plugins/osdistro.pm +++ b/xCAT-server/lib/xcat/plugins/osdistro.pm @@ -184,7 +184,7 @@ sub rmosdistro if($all) { my @result=$osdistrotab->getAllAttribs('osdistroname'); - if(defined(@result) and scalar @result >0) + if(@result and scalar @result >0) { foreach(@result) {