mirror of https://github.com/containers/podman.git
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:
parent
d68240b150
commit
be9aba7ccd
|
@ -67,10 +67,6 @@ func inspect(cmd *cobra.Command, args []string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ignFile, err := mc.IgnitionFile()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
podmanSocket, podmanPipe, err := mc.ConnectionInfo(provider.VMType())
|
||||
if err != nil {
|
||||
|
@ -84,12 +80,6 @@ func inspect(cmd *cobra.Command, args []string) error {
|
|||
PodmanPipe: podmanPipe,
|
||||
},
|
||||
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,
|
||||
Name: mc.Name,
|
||||
Resources: mc.Resources,
|
||||
|
|
|
@ -28,7 +28,6 @@ Print results with a Go template.
|
|||
| .ConfigDir ... | Machine configuration directory location |
|
||||
| .ConnectionInfo ... | Machine connection information |
|
||||
| .Created ... | Machine creation time (string, ISO3601) |
|
||||
| .Image ... | Machine image config |
|
||||
| .LastUp ... | Time when machine was last booted |
|
||||
| .Name | Name of the machine |
|
||||
| .Resources ... | Resources used by the machine |
|
||||
|
|
|
@ -110,7 +110,6 @@ type InspectInfo struct {
|
|||
ConfigDir define.VMFile
|
||||
ConnectionInfo ConnectionConfig
|
||||
Created time.Time
|
||||
Image ImageConfig
|
||||
LastUp time.Time
|
||||
Name string
|
||||
Resources vmconfigs.ResourceConfig
|
||||
|
|
Loading…
Reference in New Issue