Commit 3ebfada5 authored by Robert Ricci's avatar Robert Ricci

Add a proper entry for the node_types_auxtypes table so that we can

use the new type with vnodes.
parent a2c83679
......@@ -667,6 +667,15 @@ foreach ($inserts as $name => $value) {
if ($new_type) {
DBQueryFatal("insert into node_types set type='$node_type', ".
implode(",", $insert_data));
if ($formfields["class"] == "pc") {
$vnode_type = $node_type;
$vnode_type = preg_replace("/pc/","pcvm",$vnode_type);
if ($vnode_type == $node_type) {
$vnode_type = "$vnode_type-vm";
}
DBQueryFatal("insert into node_types_auxtypes set " .
"auxtype='$vnode_type' type='pcvm'");
}
} else {
DBQueryFatal("update node_types set ".
implode(",", $insert_data) . " ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment