|
|
|
@@ -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 |
|
|
|
} |