Skip to content

Commit

Permalink
CNAPP-10211-IntegrationEntity
Browse files Browse the repository at this point in the history
fix const
  • Loading branch information
Yogev Ktuvim committed Jul 14, 2024
1 parent 76a60a9 commit 48842e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dome9/resource_dome9_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func expandIntegrationUpdateRequest(id string, d *schema.ResourceData) (integrat
putModel := integrations.IntegrationUpdateRequestModel{
Id: id,
Name: d.Get("name").(string),
Type: d.Get("type").(string),
Type: integrations.IntegrationType(d.Get("type").(string)),
Configuration: []byte(d.Get("configuration").(string)),
}

Expand All @@ -90,7 +90,7 @@ func expandIntegrationCreateRequest(d *schema.ResourceData) (integrations.Integr

postModel := integrations.IntegrationPostRequestModel{
Name: d.Get("name").(string),
Type: d.Get("type").(string),
Type: integrations.IntegrationType(d.Get("type").(string)),
Configuration: []byte(d.Get("configuration").(string)),
}

Expand Down

0 comments on commit 48842e3

Please sign in to comment.