Skip to content

Commit 64c8280

Browse files
authored
Destroy instance if runner does not sync (#460)
1 parent 81872fa commit 64c8280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterative/resource_runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func resourceRunnerCreate(ctx context.Context, d *schema.ResourceData, m interfa
276276
}
277277

278278
if err != nil {
279-
diags = append(diags, diag.Diagnostic{
279+
diags = append(resourceMachineDelete(ctx, d, m), diag.Diagnostic{
280280
Severity: diag.Error,
281281
Summary: fmt.Sprintf("Error checking the runner status"),
282282
Detail: logEvents,

0 commit comments

Comments
 (0)