mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
fix(region): baremetal host ping forbidden
This commit is contained in:
@@ -4038,6 +4038,9 @@ func (self *SHost) StartSyncAllGuestsStatusTask(ctx context.Context, userCred mc
|
||||
}
|
||||
|
||||
func (self *SHost) PerformPing(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input api.SHostPingInput) (jsonutils.JSONObject, error) {
|
||||
if self.HostType == api.HOST_TYPE_BAREMETAL {
|
||||
return nil, httperrors.NewNotSupportedError("ping host type %s not support", self.HostType)
|
||||
}
|
||||
if input.WithData {
|
||||
// piggyback storage stats info
|
||||
log.Debugf("host ping %s", jsonutils.Marshal(input))
|
||||
|
||||
Reference in New Issue
Block a user