Skip to content

Commit

Permalink
fix protect_re.allowed_services
Browse files Browse the repository at this point in the history
fix for #39
  • Loading branch information
tmunzer committed Sep 18, 2024
1 parent d5af728 commit 8b814ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func switchMgmtProtectReTerraformToSdk(ctx context.Context, diags *diag.Diagnost
if !item_obj.AllowedServices.IsNull() && !item_obj.AllowedServices.IsUnknown() {
var items []models.ProtectReAllowedServiceEnum
for _, item := range item_obj.AllowedServices.Elements() {
items = append(items, models.ProtectReAllowedServiceEnum(item.String()))
var iface interface{} = item
val := iface.(basetypes.StringValue)
items = append(items, models.ProtectReAllowedServiceEnum(val.ValueString()))
}
data.AllowedServices = items
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func switchMgmtProtectReTerraformToSdk(ctx context.Context, diags *diag.Diagnost
if !item_obj.AllowedServices.IsNull() && !item_obj.AllowedServices.IsUnknown() {
var items []models.ProtectReAllowedServiceEnum
for _, item := range item_obj.AllowedServices.Elements() {
items = append(items, models.ProtectReAllowedServiceEnum(item.String()))
var iface interface{} = item
val := iface.(basetypes.StringValue)
items = append(items, models.ProtectReAllowedServiceEnum(val.ValueString()))
}
data.AllowedServices = items
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ func switchMgmtProtectReTerraformToSdk(ctx context.Context, diags *diag.Diagnost
if !item_obj.AllowedServices.IsNull() && !item_obj.AllowedServices.IsUnknown() {
var items []models.ProtectReAllowedServiceEnum
for _, item := range item_obj.AllowedServices.Elements() {
items = append(items, models.ProtectReAllowedServiceEnum(item.String()))
var iface interface{} = item
val := iface.(basetypes.StringValue)
items = append(items, models.ProtectReAllowedServiceEnum(val.ValueString()))
}
data.AllowedServices = items
}
Expand Down

0 comments on commit 8b814ee

Please sign in to comment.