Author: arkurth
Date: Fri May 1 13:11:49 2009
New Revision: 770661
URL: http://svn.apache.org/viewvc?rev=770661&view=rev
Log:
VCL-119
Modified new.pm which handles tomaintenance reservations. Removed
switch_state() argument which caused the an attempt to be made to set the
log.ending value to EOR.
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/new.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/new.pm
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/new.pm?rev=770661&r1=770660&r2=770661&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/new.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/new.pm Fri May 1 13:11:49 2009
@@ -143,8 +143,9 @@
if ($request_state_name =~ /tomaintenance/) {
notify($ERRORS{'OK'}, 0, "this is a 'tomaintenance' request");
- # Update the request state to complete, update the computer
state to maintenance, set the log ending to EOR, exit
- if (switch_state($request_data, 'complete', 'maintenance',
'EOR', '0')) {
+ # Update the request state to complete, update the computer
state to maintenance, exit
+ # Do not update log.ending for tomaintenance reservations
+ if (switch_state($request_data, 'complete', 'maintenance', '',
'0')) {
notify($ERRORS{'OK'}, 0, "$computer_short_name set to
maintenance");
}