Remove image provenance from `machine inspect`

We don't care about the provenance of the machine image, so this is no
longer applicable to have when displaying info.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
Jake Correnti 2024-02-05 10:38:49 -05:00
parent d68240b150
commit be9aba7ccd
3 changed files with 1 additions and 13 deletions

View File

@ -67,10 +67,6 @@ func inspect(cmd *cobra.Command, args []string) error {
if err != nil { if err != nil {
return err return err
} }
ignFile, err := mc.IgnitionFile()
if err != nil {
return err
}
podmanSocket, podmanPipe, err := mc.ConnectionInfo(provider.VMType()) podmanSocket, podmanPipe, err := mc.ConnectionInfo(provider.VMType())
if err != nil { if err != nil {
@ -84,12 +80,6 @@ func inspect(cmd *cobra.Command, args []string) error {
PodmanPipe: podmanPipe, PodmanPipe: podmanPipe,
}, },
Created: mc.Created, Created: mc.Created,
// TODO This is no longer applicable; we dont care about the provenance
// of the image
Image: machine.ImageConfig{
IgnitionFile: *ignFile,
ImagePath: *mc.ImagePath,
},
LastUp: mc.LastUp, LastUp: mc.LastUp,
Name: mc.Name, Name: mc.Name,
Resources: mc.Resources, Resources: mc.Resources,

View File

@ -28,7 +28,6 @@ Print results with a Go template.
| .ConfigDir ... | Machine configuration directory location | | .ConfigDir ... | Machine configuration directory location |
| .ConnectionInfo ... | Machine connection information | | .ConnectionInfo ... | Machine connection information |
| .Created ... | Machine creation time (string, ISO3601) | | .Created ... | Machine creation time (string, ISO3601) |
| .Image ... | Machine image config |
| .LastUp ... | Time when machine was last booted | | .LastUp ... | Time when machine was last booted |
| .Name | Name of the machine | | .Name | Name of the machine |
| .Resources ... | Resources used by the machine | | .Resources ... | Resources used by the machine |

View File

@ -110,7 +110,6 @@ type InspectInfo struct {
ConfigDir define.VMFile ConfigDir define.VMFile
ConnectionInfo ConnectionConfig ConnectionInfo ConnectionConfig
Created time.Time Created time.Time
Image ImageConfig
LastUp time.Time LastUp time.Time
Name string Name string
Resources vmconfigs.ResourceConfig Resources vmconfigs.ResourceConfig