Skip to content

Commit b0f7cdc

Browse files
committed
Ensure TensorFlow model path is a directory
(cherry picked from commit 10b62b4)
1 parent 9b1387d commit b0f7cdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/operator/api/userconfig/apis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ func GetTFServingExportFromS3Path(path string, awsClient *aws.Client) (string, e
236236
if err != nil {
237237
return "", err
238238
}
239+
prefix = s.EnsureSuffix(prefix, "/")
239240

240241
resp, _ := awsClient.S3.ListObjects(&s3.ListObjectsInput{
241242
Bucket: &bucket,

0 commit comments

Comments
 (0)