From 40d3e8e1309521d67819a82817041cda915b497b Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 09:10:07 +0000 Subject: [PATCH] defined(@array) is deprecated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14501 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ivm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ivm.pm b/xCAT-server/lib/xcat/plugins/ivm.pm index 34e50e6a7..77628b706 100644 --- a/xCAT-server/lib/xcat/plugins/ivm.pm +++ b/xCAT-server/lib/xcat/plugins/ivm.pm @@ -164,7 +164,7 @@ sub gethmccon { $host = $att->{hcp}; } my @cred = xCAT::PPCdb::credentials( $host, $hwtype ); - if ( !defined(@cred) ) + if ( !(@cred) ) { $rsp->{node}->[0]->{error}=["Can't username and passwd for the ivm"]; $rsp->{node}->[0]->{errorcode}=[1];