From 88dfaba62a4998bab08d06f51e1b80b27a24b2ea Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 4 Nov 2010 18:13:35 +0000 Subject: [PATCH] -Cleanup mistakes in recent vmware plugin work git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8044 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 829473fae..b6874d008 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -298,7 +298,7 @@ sub process_request { if ($ref and $ref->{value}) { $usehostnamesforvcenter = $ref->{value}; } - (my $ref) = $sitetab->getAttribs({key => 'vcenterautoconnect'}, 'value'); + ($ref) = $sitetab->getAttribs({key => 'vcenterautoconnect'}, 'value'); if ($ref and $ref->{value}) { $vcenterautoconnect = $ref->{value}; if ($vcenterautoconnect =~ /^n/ or $vcenterautoconnect =~ /^dis/) { @@ -2811,11 +2811,10 @@ sub validate_vcenter_prereqs { #Communicate with vCenter and ensure this host is } } } - unless ($vcenterautojoin) { + unless ($vcenterautoconnect) { xCAT::SvrUtils::sendmsg([1,": Failed to communicate with $hyp, vCenter does not have it in inventory and xCAT is set to not autojoin"], $output_handler); $hyphash{$hyp}->{conn} = undef; return "failed"; - } } #If still in function, haven't found any likely host entries, make a new one unless ($hyphash{$hyp}->{offline}) {