From 55af8ca8c4c8a1ae1b86db0f217cc88483a86c98 Mon Sep 17 00:00:00 2001 From: Bin Xu Date: Fri, 9 Mar 2018 13:27:35 +0800 Subject: [PATCH] remove the dependency, Load SOAP module dynamically --- perl-xCAT/xCAT/vboxService.pm | 2 +- xCAT-server/lib/xcat/plugins/vbox.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/vboxService.pm b/perl-xCAT/xCAT/vboxService.pm index 2f7b7130e..27f658ab9 100644 --- a/perl-xCAT/xCAT/vboxService.pm +++ b/perl-xCAT/xCAT/vboxService.pm @@ -813,7 +813,7 @@ my %methods = ( }, # end IConsole_getPowerButtonHandled ); # end my %methods -use SOAP::Lite; # vbox.pm requires SOAP::Lite before requiring vboxService.pm, so we can check for SOAP::Lite dynamically +#use SOAP::Lite; # vbox.pm requires SOAP::Lite before requiring vboxService.pm, so we can check for SOAP::Lite dynamically use Exporter; use Carp (); diff --git a/xCAT-server/lib/xcat/plugins/vbox.pm b/xCAT-server/lib/xcat/plugins/vbox.pm index 3ed06b262..be6578034 100644 --- a/xCAT-server/lib/xcat/plugins/vbox.pm +++ b/xCAT-server/lib/xcat/plugins/vbox.pm @@ -105,7 +105,7 @@ sub process_request my $soapsupport = eval { require SOAP::Lite; }; unless ($soapsupport) { #Still no SOAP::Lite module - $callback->({ error => "SOAP::Lite perl module missing, unable to fulfill Virtual Box plugin requirements", errorcode => [42] }); + $callback->({ error => "SOAP::Lite perl module missing. Install perl-SOAP-Lite before running commands on Virtual Box nodes.", errorcode => [42] }); return []; } require xCAT::vboxService;