Bug: Incorrect fmt verb causes garbled Idle Days output in resource table
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
Research direction
Open internal/ui/table.go and inspect the scan results table row format for the Idle Days column. Run aws-ghost scan --only ebs, ideally with an unattached EBS volume, and verify that Idle Days renders as a number without formatting artifacts.
Written by the indexing model from the issue text.
Description
What this fixes
Resolves a fmt.Sprintf verb mismatch in internal/ui/table.go that caused garbled output in the "Idle Days" column of the scan results table.
Before:
💾 ebs vol-xxxxxxxxxxxxx us-west-1 $8.00 %!s(int=0 ) %!d(MISSING)
After:
💾 ebs vol-xxxxxxxxxxxxx us-west-1 $8.00 0
Root cause
r.IdleDays is an int, but the row string used %-*s (string verb) instead of %-*d (int verb), leaving a dangling unmatched %d verb.
Change
- " %s %-*s %-*s %-*s %s %-*s %d",
+ " %s %-*s %-*s %-*s %s %-*d",
Testing
Verified locally by creating an unattached EBS volume and running aws-ghost scan --only ebs before and after the fix — output is now clean with no formatting artifacts.
- Dominant language
- Go
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100