From 488140a42802ed32ab8cc9e58af6c094fee847a5 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 8 Dec 2011 08:31:33 +0000 Subject: [PATCH] use getNodeAttribs instead of getAttribs for vmmaster table git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11182 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 46e021bcb..13a0d14f3 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -2137,7 +2137,7 @@ sub clonevms { my $masterref; if ($base) { #if base, we need to pull in the target datastores my $mastertab=xCAT::Table->new('vmmaster'); - $masterref=$mastertab->getAttribs({name=>$base},[qw/storage os arch profile storagemodel nics/]); + $masterref=$mastertab->getNodeAttribs( $base,[qw/storage os arch profile storagemodel nics/]); unless ($masterref) { foreach my $node (@$nodes) { xCAT::SvrUtils::sendmsg([1,"Cannot find master $base in vmmaster table"], $output_handler,$node);