Skip to content

Commit 9839bbd

Browse files
committed
fix: emit correct error message when importing log drain
1 parent 21edca2 commit 9839bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/log_drain_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (r *logDrainResource) Delete(ctx context.Context, req resource.DeleteReques
423423
func (r *logDrainResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
424424
idParts := strings.Split(req.ID, ":")
425425

426-
errorMessage := fmt.Sprintf("Expected import identifier in the formats: site_id,log_drain_id. Got: %q", req.ID)
426+
errorMessage := fmt.Sprintf("Expected import identifier in the formats: site_id:log_drain_id. Got: %q", req.ID)
427427

428428
if len(idParts) == 2 {
429429
if idParts[0] == "" || idParts[1] == "" {

0 commit comments

Comments
 (0)