Skip to content

Commit 66f39ee

Browse files
committed
machine: Remove unnecessary TODOs
Remove TODO to swap `Rootful` in Inspect with `HostUser` It is unnecessary to remove the vfkit logfile in the provider-specific Remove function. Vfkit is fed the default logfile provided by mc.LogFile which is removed by the generic Remove function. Removes TODO regarding moving the location of Stop. False TODO. [NO NEW TESTS NEEDED] Signed-off-by: Jake Correnti <[email protected]>
1 parent 6c7f987 commit 66f39ee

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

cmd/podman/machine/inspect.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ func inspect(cmd *cobra.Command, args []string) error {
9090
SSHConfig: mc.SSH,
9191
State: state,
9292
UserModeNetworking: provider.UserModeNetworkEnabled(mc),
93-
// TODO I think this should be the HostUser
94-
Rootful: mc.HostUser.Rootful,
93+
Rootful: mc.HostUser.Rootful,
9594
}
9695

9796
vms = append(vms, ii)

pkg/machine/applehv/machine.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ func (a *AppleHVStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() e
2121
mc.Lock()
2222
defer mc.Unlock()
2323

24-
// TODO we could delete the vfkit pid/log files if we wanted to be thorough
2524
return []string{}, func() error { return nil }, nil
2625
}
2726

pkg/machine/shim/host.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ func getMCsOverProviders(vmstubbers []vmconfigs.VMProvider) (map[string]*vmconfi
306306
}
307307

308308
// Stop stops the machine as well as supporting binaries/processes
309-
// TODO: I think this probably needs to go somewhere that remove can call it.
310309
func Stop(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDefine.MachineDirs, hardStop bool) error {
311310
// state is checked here instead of earlier because stopping a stopped vm is not considered
312311
// an error. so putting in one place instead of sprinkling all over.

0 commit comments

Comments
 (0)