Skip to content

Commit

Permalink
fix: #365 harbor_registry - jfrog - update failed (#366)
Browse files Browse the repository at this point in the history
Fixes #365

Signed-off-by: flbla <flbla@users.noreply.github.com>
  • Loading branch information
flbla authored Aug 23, 2023
1 parent d4a4dfb commit 7859961
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions client/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ func GetRegistryBody(d *schema.ResourceData) models.RegistryBody {
}

func GetRegistryUpdateBody(d *schema.ResourceData) models.RegistryUpdateBody {
regType, _ := GetRegistryType(d.Get("provider_name").(string))

body := models.RegistryUpdateBody{
AccessKey: d.Get("access_id").(string),
CredentialType: regType,
AccessSecret: d.Get("access_secret").(string),
Description: d.Get("description").(string),
Insecure: d.Get("insecure").(bool),
Name: d.Get("name").(string),
URL: d.Get("endpoint_url").(string),
AccessKey: d.Get("access_id").(string),
AccessSecret: d.Get("access_secret").(string),
Description: d.Get("description").(string),
Insecure: d.Get("insecure").(bool),
Name: d.Get("name").(string),
URL: d.Get("endpoint_url").(string),
}

return body
Expand Down

0 comments on commit 7859961

Please sign in to comment.