You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2015/02/03 15:37:50 UTC
svn commit: r1656746 - /vcl/trunk/web/.ht-inc/utils.php
Author: jfthomps
Date: Tue Feb 3 14:37:50 2015
New Revision: 1656746
URL: http://svn.apache.org/r1656746
Log:
VCL-776 - rework resource code to have a base class for all resources and inheriting classes for each resource type
utils.php: modified getProvisioningTypes: changed separate if's in while loop to if/elseif/else; handle bare metal and none types, then let everything else fall into being virtual - this allows people to add other types a little more easily (as long as they are virtual)
Modified:
vcl/trunk/web/.ht-inc/utils.php
Modified: vcl/trunk/web/.ht-inc/utils.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/utils.php?rev=1656746&r1=1656745&r2=1656746&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/utils.php (original)
+++ vcl/trunk/web/.ht-inc/utils.php Tue Feb 3 14:37:50 2015
@@ -6643,9 +6643,9 @@ function getProvisioningTypes() {
while($row = mysql_fetch_assoc($qh)) {
if($row['type'] == 'kickstart' || $row['type'] == 'partimage')
$types['blade'][$row['id']] = $row['prettyname'];
- if($row['type'] == 'none')
+ elseif($row['type'] == 'none')
$types['lab'][$row['id']] = $row['prettyname'];
- if($row['type'] == 'vbox' || $row['type'] == 'vmware')
+ else
$types['virtualmachine'][$row['id']] = $row['prettyname'];
}
return $types;