internal/backend/remote-state/oss: fix dropped error (#30352)

This commit is contained in:
Lars Lehtonen 2022-04-01 00:07:31 -07:00 committed by GitHub
parent 8d490aad9f
commit 88c9b90c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,9 @@ func (b *Backend) Workspaces() ([]string, error) {
options = append(options, oss.Marker(lastObj)) options = append(options, oss.Marker(lastObj))
} }
resp, err = bucket.ListObjects(options...) resp, err = bucket.ListObjects(options...)
if err != nil {
return nil, err
}
} else { } else {
break break
} }