* Fix hostType error when add vm node.

This commit is contained in:
zhaoke
2023-03-16 08:45:29 +08:00
parent 5db08a5f04
commit dad27dc1ad
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -85,6 +85,7 @@ class hostHeartbeatEntry extends baseEntry
if($hostInfo->hostType == 'physics')
{
unset($vmData['extranet']);
$this->dao->update(TABLE_ZAHOST)->data($vmData)->where('id')->eq($hostInfo->id)->exec();
}
else
+4
View File
@@ -66,6 +66,10 @@ class zanodemodel extends model
$data->secret = md5($data->name . time());
$data->status = "offline";
}
else
{
$data->hostType = '';
}
/* Batch check fields. */
$this->dao->update(TABLE_ZAHOST)->data($data)