Browse Source

#2373

fix bug
tags/v1.22.7.1
chenyifan01 3 years ago
parent
commit
297275cedf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/storage/obs.go

+ 3
- 1
modules/storage/obs.go View File

@@ -575,6 +575,8 @@ func GetObsLogFileName(prefix string) (string, error) {
log.Error("PutObject failed:", err.Error())
return "", err
}

if output == nil || len(output.Contents) == 0 {
return "", errors.New("obs log files not exist")
}
return output.Contents[0].Key, nil
}

Loading…
Cancel
Save