Author: fapeeler
Date: Mon Aug 17 15:31:25 2009
New Revision: 805010

URL: http://svn.apache.org/viewvc?rev=805010&view=rev
Log:
VCL-182

Added generic Linux OS type 


Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm

Modified: 
incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm?rev=805010&r1=805009&r2=805010&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm 
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/vmware.pm 
Mon Aug 17 15:31:25 2009
@@ -624,11 +624,12 @@
        }
 
        notify($ERRORS{'OK'}, 0, "adapter= $adapter drivetype 
$vmclient_drivetype");
-       my $guestOS;
+       my $guestOS = "other";
        $guestOS = "winxppro" if ($requestedimagename =~ /(winxp)/i);
        $guestOS = "winnetenterprise"  if ($requestedimagename =~ 
/(win2003|win2008)/i);
        $guestOS = "ubuntu"   if ($requestedimagename =~ /(ubuntu)/i);
        $guestOS = "winvista"   if ($requestedimagename =~ /(vista)/i);
+       $guestOS = "linux"   if ($vmclient_OSname =~ /(linux)/i);
 
        my @vmxfile;
        my $tmpfile = "/tmp/$myvmdir/$myvmdir.vmx";


Reply via email to