2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-11 07:40:11 +00:00

Merge pull request #4910 from robin2008/not-default-require-soap

remove the dependency, Load SOAP module dynamically
This commit is contained in:
zet809
2018-03-09 14:09:56 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -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 ();

View File

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