Skip to content

Commit e48deaf

Browse files
authored
Fix Argus scrape config internal models to use Terraform types (#349)
* Fix SAML2 model * Fix BasicAuth model * Fix Targets model * Fixes after testing
1 parent 8ddcfc8 commit e48deaf

3 files changed

Lines changed: 479 additions & 116 deletions

File tree

stackit/internal/services/argus/scrapeconfig/datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (d *scrapeConfigDataSource) Read(ctx context.Context, req datasource.ReadRe
222222
return
223223
}
224224

225-
err = mapFields(scResp.Data, &model)
225+
err = mapFields(ctx, scResp.Data, &model)
226226
if err != nil {
227227
core.LogAndAddError(ctx, &resp.Diagnostics, "Mapping fields", err.Error())
228228
return

0 commit comments

Comments
 (0)