mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Merge pull request #4910 from robin2008/not-default-require-soap
remove the dependency, Load SOAP module dynamically
This commit is contained in:
		| @@ -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 (); | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user