All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit ed66df6d authored by Leigh B. Stoller's avatar Leigh B. Stoller

When the node is remote, add a node_types_auxtypes entry that maps the

physical type to pcvwa (our generic type for widearea virtual nodes).
Local node types are still mapped to pcvm.
parent bca7dc71
......@@ -610,14 +610,16 @@ foreach ($inserts as $name => $value) {
if (isset($new_type)) {
DBQueryFatal("insert into node_types set type='$node_type', ".
implode(",", $insert_data));
if ($formfields["class"] == "pc") {
if ($formfields["class"] == "pc" || $formfields["isremotenode"] == 1) {
$vnode_type = $node_type;
$vnode_type = preg_replace("/pc/","pcvm",$vnode_type);
if ($vnode_type == $node_type) {
$vnode_type = "$vnode_type-vm";
}
$pcvmtype = ($formfields["isremotenode"] == 1 ? "pcvwa" : "pcvm");
DBQueryFatal("insert into node_types_auxtypes set " .
"auxtype='$vnode_type', type='pcvm'");
" auxtype='$vnode_type', type='$pcvmtype'");
}
foreach ($attributes as $key => $value) {
# Skip if scheduled for deletion
......
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