Skip to content

Commit

Permalink
Merge pull request #2 from selefra-bot/main
Browse files Browse the repository at this point in the history
fix: oss bucket add primary key
  • Loading branch information
selefra-bot authored Jan 28, 2023
2 parents 3f4c928 + 470d532 commit 1d1eb61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,6 @@ github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OK
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/selefra/selefra-provider-sdk v0.0.17-0.20230104134642-11483463e01d h1:AiVhfam8cOkTYbziYMBp3qu3NLnUJdKgrNdubNRhj5U=
github.com/selefra/selefra-provider-sdk v0.0.17-0.20230104134642-11483463e01d/go.mod h1:o0/4RWphTrg78ja9oedg9EEMpE4A4y+DeVzlnkpnq1s=
github.com/selefra/selefra-provider-sdk v0.0.17 h1:AG1ZD/TNzMN/3FSGBzUMrrrOljcZ5KNeQ/ntca+FlIM=
github.com/selefra/selefra-provider-sdk v0.0.17/go.mod h1:o0/4RWphTrg78ja9oedg9EEMpE4A4y+DeVzlnkpnq1s=
github.com/selefra/selefra-utils v0.0.2 h1:Z3cAmMoTr6XePiZJakRmLVi7CvMjZ4ypt8TO73M03F0=
Expand Down
4 changes: 3 additions & 1 deletion tables/alicloud_oss_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ func (x *TableAlicloudOssBucketGenerator) GetVersion() uint64 {
}

func (x *TableAlicloudOssBucketGenerator) GetOptions() *schema.TableOptions {
return &schema.TableOptions{}
return &schema.TableOptions{
PrimaryKeys: []string{"name", "location"},
}
}

func (x *TableAlicloudOssBucketGenerator) GetDataSource() *schema.DataSource {
Expand Down

0 comments on commit 1d1eb61

Please sign in to comment.