Skip to content

Commit d66c0eb

Browse files
authored
remove platform version from machine list view (#3811)
1 parent d8dca83 commit d66c0eb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/command/machine/list.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66

77
"github.com/samber/lo"
88
"github.com/spf13/cobra"
9-
fly "github.com/superfly/fly-go"
109
"github.com/superfly/fly-go/flaps"
1110
"github.com/superfly/flyctl/internal/appconfig"
1211
"github.com/superfly/flyctl/internal/command"
@@ -100,14 +99,10 @@ func runMachineList(ctx context.Context) (err error) {
10099
volName = machine.Config.Mounts[0].Volume
101100
}
102101

103-
appPlatform := ""
104102
machineProcessGroup := ""
105103
size := ""
106104

107105
if machine.Config != nil {
108-
if platformVersion, ok := machine.Config.Metadata[fly.MachineConfigMetadataKeyFlyPlatformVersion]; ok {
109-
appPlatform = platformVersion
110-
}
111106

112107
if processGroup := machine.ProcessGroup(); processGroup != "" {
113108
machineProcessGroup = processGroup
@@ -157,7 +152,6 @@ func runMachineList(ctx context.Context) (err error) {
157152
volName,
158153
lo.Ternary(unreachable, "", machine.CreatedAt),
159154
lo.Ternary(unreachable, "", machine.UpdatedAt),
160-
appPlatform,
161155
machineProcessGroup,
162156
size,
163157
})
@@ -175,7 +169,6 @@ func runMachineList(ctx context.Context) (err error) {
175169
"Volume",
176170
"Created",
177171
"Last Updated",
178-
"App Platform",
179172
"Process Group",
180173
"Size",
181174
}

0 commit comments

Comments
 (0)