From 2c09465a4d6f91df0c453d4581f18da12d9ff394 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Feb 2021 06:36:58 +0000 Subject: [PATCH 1/3] Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.4.3 to 2.4.4 Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.4.3 to 2.4.4. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/master/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.4.3...v2.4.4) Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 9ea02cf..1e7898f 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/BESTSELLER/terraform-provider-harbor go 1.14 -require github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.3 +require github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.4 diff --git a/go.sum b/go.sum index 4f86663..4ae710f 100644 --- a/go.sum +++ b/go.sum @@ -198,8 +198,8 @@ github.com/hashicorp/terraform-json v0.8.0 h1:XObQ3PgqU52YLQKEaJ08QtUshAfN3yu4u8 github.com/hashicorp/terraform-json v0.8.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE= github.com/hashicorp/terraform-plugin-go v0.2.1 h1:EW/R8bB2Zbkjmugzsy1d27yS8/0454b3MtYHkzOknqA= github.com/hashicorp/terraform-plugin-go v0.2.1/go.mod h1:10V6F3taeDWVAoLlkmArKttR3IULlRWFAGtQIQTIDr4= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.3 h1:DGnxpIYRHXQZb2TOlQ1OCEYxoRQrAcbLIcYm8kvbFuU= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.3/go.mod h1:5wrrTcxbSaQXamCDbHZTHk6yTF9OEZaOvQ9fvLXBE3o= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.4 h1:6k0WcxFgVqF/GUFHPvAH8FIrCkoA1RInXzSxhkKamPg= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.4/go.mod h1:z+cMZ0iswzZOahBJ3XmNWgWkVnAd2bl8g+FhyyuPDH4= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= From 8ad00a3a32275bd18885208d6c32cf6d6ff31fdd Mon Sep 17 00:00:00 2001 From: Stainless888 <79852293+Stainless888@users.noreply.github.com> Date: Mon, 1 Mar 2021 15:45:51 +0100 Subject: [PATCH 2/3] Update config.go fix the typo for ldap_group_gid --- models/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/config.go b/models/config.go index 3d1bd8f..66bf2a5 100644 --- a/models/config.go +++ b/models/config.go @@ -49,7 +49,7 @@ type ConfigBodyPost struct { RobotTokenDuration int `json:"robot_token_duration,omitempty"` LdapVerifyCert bool `json:"ldap_verify_cert,omitempty"` - LdapGroupGID string `json:"ldap_group_id,omitempty"` + LdapGroupGID string `json:"ldap_group_gid,omitempty"` } type ConfigBodyResponse struct { From dd13d2426ee6aba801349db82cfc4b220ff6aba4 Mon Sep 17 00:00:00 2001 From: Stainless888 <79852293+Stainless888@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:12:32 +0100 Subject: [PATCH 3/3] Update config.go also add ldap_group_gid to ConfigBodyResponse body --- models/config.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/models/config.go b/models/config.go index 66bf2a5..db47f64 100644 --- a/models/config.go +++ b/models/config.go @@ -48,8 +48,7 @@ type ConfigBodyPost struct { EmailFrom string `json:"email_from,omitempty"` RobotTokenDuration int `json:"robot_token_duration,omitempty"` LdapVerifyCert bool `json:"ldap_verify_cert,omitempty"` - - LdapGroupGID string `json:"ldap_group_gid,omitempty"` + LdapGroupGID string `json:"ldap_group_gid,omitempty"` } type ConfigBodyResponse struct { @@ -207,4 +206,8 @@ type ConfigBodyResponse struct { Editable bool `json:"editable,omitempty"` Value string `json:"value,omitempty"` } `json:"email_from,omitempty"` + LdapGroupGID struct { + Editable bool `json:"editable,omitempty"` + Value string `json:"value,omitempty"` + } `json:"ldap_group_gid,omitempty"` }