Author: arkurth
Date: Mon Jul 10 18:31:26 2017
New Revision: 1801509

URL: http://svn.apache.org/viewvc?rev=1801509&view=rev
Log:
VCL-1000
Added call to OS.pm::post_reservation in image.pm::process. This causes 
post-reservation scripts to get executed prior to image capture.

Modified:
    vcl/trunk/managementnode/lib/VCL/image.pm

Modified: vcl/trunk/managementnode/lib/VCL/image.pm
URL: 
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/image.pm?rev=1801509&r1=1801508&r2=1801509&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/image.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/image.pm Mon Jul 10 18:31:26 2017
@@ -154,6 +154,10 @@ sub process {
                $self->reservation_failed();
        }
        
+       # Make sure post_reservation scripts get executed before capturing 
computer
+       # This is normally done by reclaim.pm, but this won't be called in the 
following capture/reload sequence
+       $self->os->post_reservation();
+       
        # Call the provisioning modules's capture() subroutine
        # The provisioning module should do everything necessary to capture the 
image
        notify($ERRORS{'OK'}, 0, "calling provisioning module's capture() 
subroutine");


Reply via email to