* Fix hostType error when add vm node.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user