fix(region): show host info when cache image (#16998)

This commit is contained in:
屈轩
2023-05-11 11:03:15 +08:00
committed by GitHub
parent 2909bf0f4a
commit 559bb5b00b
+1 -1
View File
@@ -206,8 +206,8 @@ func (self *SKVMHostDriver) CheckAndSetCacheImage(ctx context.Context, host *mod
body := jsonutils.NewDict()
body.Add(jsonutils.Marshal(&input), "disk")
log.Infof("cache image %s(%s) on host %s(%s)", input.ImageName, input.ImageId, host.Name, host.AccessIp)
header := task.GetTaskRequestHeader()
_, _, err = httputils.JSONRequest(httputils.GetDefaultClient(), ctx, "POST", url, header, body, false)
if err != nil {
return errors.Wrapf(err, "POST %s", url)