Skip to content

Commit cc813c8

Browse files
committed
Fix limactl ls treating files as instances
Only treat directories in limadir as instances. Signed-off-by: Jasper Wiegratz <[email protected]>
1 parent 60a43dc commit cc813c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/store/store.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func Instances() ([]string, error) {
2525
if strings.HasPrefix(f.Name(), ".") || strings.HasPrefix(f.Name(), "_") {
2626
continue
2727
}
28+
if !f.IsDir() {
29+
continue
30+
}
2831
names = append(names, f.Name())
2932
}
3033
return names, nil

0 commit comments

Comments
 (0)