Author: jfthomps
Date: Thu Jun  2 21:18:03 2016
New Revision: 1746636

URL: http://svn.apache.org/viewvc?rev=1746636&view=rev
Log:
VCL-843 - Remove "VM limit"

computer.php: modified insert queries to the vmhost table in the following 
fuctions to remove inserting the vmlimit field: AJsaveResource, addResource, 
and updateVmhostProfile

Modified:
    vcl/trunk/web/.ht-inc/computer.php

Modified: vcl/trunk/web/.ht-inc/computer.php
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/computer.php?rev=1746636&r1=1746635&r2=1746636&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/computer.php (original)
+++ vcl/trunk/web/.ht-inc/computer.php Thu Jun  2 21:18:03 2016
@@ -1052,10 +1052,8 @@ class Computer extends Resource {
                                                $olddata['vmprofileid'] == '') {
                                                $query = "INSERT INTO vmhost "
                                                       .        "(computerid, "
-                                                      .        "vmlimit, "
                                                       .        "vmprofileid) "
                                                       . "VALUES 
({$data['rscid']}, "
-                                                      .        "5, "
                                                       .        
"{$data['vmprofileid']})";
                                                doQuery($query);
                                        }
@@ -2261,10 +2259,8 @@ class Computer extends Resource {
                        if($data['stateid'] == '20') {
                                $query = "INSERT INTO vmhost "
                                       .        "(computerid, "
-                                      .        "vmlimit, "
                                       .        "vmprofileid) "
                                       . "VALUES ($rscid, "
-                                      .        "5, "
                                       .        "{$data['vmprofileid']})";
                                doQuery($query);
                        }
@@ -2341,10 +2337,8 @@ class Computer extends Resource {
                                if($data['stateid'] == '20') {
                                        $query = "INSERT INTO vmhost "
                                               .        "(computerid, "
-                                              .        "vmlimit, "
                                               .        "vmprofileid) "
                                               . "VALUES ($rscid, "
-                                              .        "5, "
                                               .        
"{$data['vmprofileid']})";
                                        doQuery($query);
                                }
@@ -2545,10 +2539,8 @@ class Computer extends Resource {
                        # create vmhost entry
                        $query = "INSERT INTO vmhost "
                               .        "(computerid, "
-                              .        "vmlimit, "
                               .        "vmprofileid) "
                               . "VALUES ($compid, "
-                              .        "5, "
                               .        "$newprofileid)";
                        doQuery($query);
                }


Reply via email to