Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Fixing panic in ECS runner uninstall when EFS is missing #4829

Merged
merged 3 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/4829.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
runneruninstall/aws-ecs: Fix panic when uninstalling ECS runner after failing to find EFS
```
2 changes: 1 addition & 1 deletion internal/runnerinstall/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (i *ECSRunnerInstaller) Uninstall(ctx context.Context, opts *InstallOpts) e
}
}

if *fileSystemId == "" {
if fileSystemId == nil || *fileSystemId == "" {
s.Update("File system with tag key `runner-id` and value " + opts.Id + " not detected, skipping deletion")
s.Done()
return nil
Expand Down