Author: arkurth
Date: Wed Feb  1 18:23:43 2017
New Revision: 1781294

URL: http://svn.apache.org/viewvc?rev=1781294&view=rev
Log:
VCL-1000
Added ability for management node OS object to call $self->os to access the 
computer OS object. This is used in 
ManagementNode.pm::create_management_node_reservation_info_json_file. It needs 
information from the computer OS's DataStructure.

Modified:
    vcl/trunk/managementnode/lib/VCL/Module/State.pm

Modified: vcl/trunk/managementnode/lib/VCL/Module/State.pm
URL: 
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/State.pm?rev=1781294&r1=1781293&r2=1781294&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/State.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/State.pm Wed Feb  1 18:23:43 2017
@@ -173,6 +173,13 @@ sub initialize {
                $self->reservation_failed("failed to create OS object");
        }
        
+       # Set the os under mn_os to the OS object for the computer being loaded
+       # This allows the $self->mn_os object to call $self->os to retrieve the 
OS object for the computer being loaded
+       # This is useful because the DataStructure object changes when mn_os is 
created and it would otherwise not have access to the original data
+       if ($self->mn_os()) {
+               $self->mn_os->set_os($self->os);
+       }
+       
        # Create a VM host OS object if vmhostid is set for the computer
        my $vmhost_os;
        if ($is_vm) {


Reply via email to