Author: arkurth
Date: Mon Jun 3 17:34:07 2013
New Revision: 1489071
URL: http://svn.apache.org/r1489071
Log:
VCL-691
Fixed regex in get_production_imagerevision_info. It had an extra backslash.
Modified:
vcl/trunk/managementnode/lib/VCL/utils.pm
Modified: vcl/trunk/managementnode/lib/VCL/utils.pm
URL:
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=1489071&r1=1489070&r2=1489071&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/utils.pm Mon Jun 3 17:34:07 2013
@@ -4357,10 +4357,10 @@ EOF
if($image_identifier =~ /^\d/){
$select_statement .= "imagerevision.imageid =
'$image_identifier'";
}
- else{
+ else {
# Assume $image_identifier is the image name, strip off '-v*'
from the end
# Otherwise query may fail if production version is not the
exact revision passed as the argument
- $image_identifier =~ s/-\v\d+$/-v%/;
+ $image_identifier =~ s/-v\d+$/-v%/;
$select_statement .= "imagerevision.imagename LIKE
\'$image_identifier\'";
}