Author: fapeeler
Date: Mon Mar 9 15:03:34 2009
New Revision: 751700
URL: http://svn.apache.org/viewvc?rev=751700&view=rev
Log:
VCL-100
added a conditional check to account for new distro - This is the only location
on the backend that still depends on the distro name. This will be removed at a
future date once a method for generalizing Linux distros is pushed to the
database or we get away from using distros in the prefix of the internal
imagename.
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/Module/State.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/State.pm
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/State.pm?rev=751700&r1=751699&r2=751700&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/State.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/State.pm Mon Mar 9
15:03:34 2009
@@ -364,6 +364,10 @@
# Change rhelX --> rhXimage, rhfcX --> fcXimage
$image_os_name_new = "$1$2image";
}
+ elsif($image_os_name =~ /^(centos)([0-9])/) {
+ # Change rhelX --> rhXimage, rhfcX --> fcXimage
+ $image_os_name_new = "$1$2image";
+ }
else {
notify($ERRORS{'OK'}, 0, "no corrections need to be made to
image OS: $image_os_name");
return 1;