Skip to content

Commit

Permalink
fix: wrong error message in update of directory resource (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
lechnerc77 authored Jul 12, 2023
1 parent c719f8b commit 37042c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (rs *directoryResource) Update(ctx context.Context, req resource.UpdateRequ

updatedRes, err := createStateConf.WaitForStateContext(ctx)
if err != nil {
resp.Diagnostics.AddError("API Error Creating Resource Directory", fmt.Sprintf("%s", err))
resp.Diagnostics.AddError("API Error Updating Resource Directory", fmt.Sprintf("%s", err))
}

plan, diags = directoryValueFrom(ctx, updatedRes.(cis.DirectoryResponseObject))
Expand Down

0 comments on commit 37042c6

Please sign in to comment.