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 {
|
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,
|
||||||
|
|
|
@ -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 |
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue