Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit c2c5d0c

Browse files
committed
fix: allow to destroy "created" instance
1 parent b7c7260 commit c2c5d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/instancerunner/destroy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (ir *InstanceRunner) destroyImpl(ctx context.Context) error {
2121

2222
status := ir.Status()
2323

24-
if status != instance.InstanceStatusStopped {
24+
if status != instance.InstanceStatusStopped && status != instance.InstanceStatusCreated {
2525
return errdefs.NewFailedPrecondition(fmt.Sprintf("instance is in %s state", status))
2626
}
2727

0 commit comments

Comments
 (0)