Files
podman/pkg/machine/e2e/config_inspect_test.go
Ashley Cui eeff3d2de8 Fix machine inspect test config
Signed-off-by: Ashley Cui <acui@redhat.com>
2024-01-11 11:42:54 -05:00

25 lines
490 B
Go

package e2e_test
type inspectMachine struct {
/*
--format string Format volume output using JSON or a Go template
*/
cmd []string
format string
}
func (i *inspectMachine) buildCmd(m *machineTestBuilder) []string {
cmd := []string{"machine", "inspect"}
if len(i.format) > 0 {
cmd = append(cmd, "--format", i.format)
}
cmd = append(cmd, m.name)
i.cmd = cmd
return cmd
}
func (i *inspectMachine) withFormat(format string) *inspectMachine {
i.format = format
return i
}