From 7d52f64508e012160e4467de0c0e7020d72f65d8 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 13 Jul 2009 19:48:34 +0000 Subject: [PATCH] -Fix Schema typo in hypervisor table definition -Fix problem where VMware commands would fail if hypervisor table is not defined git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3766 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 2 +- xCAT-server/lib/xcat/plugins/esx.pm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 6a3191432..dedee793e 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -60,7 +60,7 @@ vm => { } }, hypervisor => { - cols => [qw(noe mgr comments disable)], + cols => [qw(node mgr comments disable)], keys => [qw(node)], table_desc => 'Hypervisor parameters', descriptions => { diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 249c21699..cfd8bc6eb 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -214,7 +214,10 @@ sub preprocess_request { #$vmtabhash = $vmtab->getNodesAttribs(\@hyps,['host']); #We now use hypervisor fields to be unambiguous my $hyptab = xCAT::Table->new('hypervisor'); - my $hyptabhash = $hyptab->getNodesAttribs(\@hyps,['mgr']); + my $hyptabhash={}; + if ($hyptab) { + $hyptabhash = $hyptab->getNodesAttribs(\@hyps,['mgr']); + } # build each request for each service node