Andy Kurth created VCL-851:
------------------------------

             Summary: Prevent warning in vcld.log if vSphere SDK is not 
installed
                 Key: VCL-851
                 URL: https://issues.apache.org/jira/browse/VCL-851
             Project: VCL
          Issue Type: Improvement
          Components: vcld (backend)
            Reporter: Andy Kurth
            Assignee: Andy Kurth
            Priority: Trivial
             Fix For: 2.4.2


{{vSphereSDK.pm::initialize}} is needlessly displaying the following in 
_vcld.log_ if the SDK is not installed:

{noformat}2015-04-01 
16:09:12|26198|2375|3115|test|vSphere_SDK.pm:initialize|98|vSphere SDK for Perl 
does not appear to be installed on this managment node, unable to load VMware 
vSphere SDK Perl modules, error:
|26198|2375|3115|test|vSphere_SDK.pm:initialize|98| Can't locate 
VMware/VIRuntime.pm in @INC (@INC contains: /usr/local/vclclean/bin/../../../.. 
/usr/local/vclclean/bin/../.. /usr/local/vclclean/bin/../../.. 
/usr/local/vclclean/bin/.. /usr/local/vclclean/bin/../lib 
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl 
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 273) 
line 1.
|26198|2375|3115|test|vSphere_SDK.pm:initialize|98| BEGIN failed--compilation 
aborted at (eval 273) line 1.{noformat}

After the code attempts to load the SDK modules, it checks if the VM profile 
username and password are configured.  If not, it returns.  Moving the loading 
of the SDK modules to after the username/password defined check will prevent 
the warning from appearing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to