diff --git a/api/v1/entries/hostheartbeat.php b/api/v1/entries/hostheartbeat.php index 16946fb0f7..38ae856782 100644 --- a/api/v1/entries/hostheartbeat.php +++ b/api/v1/entries/hostheartbeat.php @@ -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 diff --git a/module/zanode/model.php b/module/zanode/model.php index 4079c65161..8ba9790777 100644 --- a/module/zanode/model.php +++ b/module/zanode/model.php @@ -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)