-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
This commit is contained in:
jbjohnso 2009-07-13 19:48:34 +00:00
parent ca1a1682b8
commit 7d52f64508
2 changed files with 5 additions and 2 deletions

View File

@ -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 => {

View File

@ -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