mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Add podman socket info to machine inspect
HyperV and appleHV machine inspect commands were missing podman socket info. This also fixes machine inspect tests on hyperV Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@ -298,10 +298,16 @@ func (m *MacMachine) Inspect() (*machine.InspectInfo, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
podmanSocket, err := m.forwardSocketPath()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
ii := machine.InspectInfo{
|
ii := machine.InspectInfo{
|
||||||
ConfigPath: m.ConfigPath,
|
ConfigPath: m.ConfigPath,
|
||||||
ConnectionInfo: machine.ConnectionConfig{
|
ConnectionInfo: machine.ConnectionConfig{
|
||||||
PodmanSocket: nil,
|
PodmanSocket: podmanSocket,
|
||||||
PodmanPipe: nil,
|
PodmanPipe: nil,
|
||||||
},
|
},
|
||||||
Created: m.Created,
|
Created: m.Created,
|
||||||
|
@ -290,10 +290,17 @@ func (m *HyperVMachine) Inspect() (*machine.InspectInfo, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
podmanSocket, err := m.forwardSocketPath()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
return &machine.InspectInfo{
|
return &machine.InspectInfo{
|
||||||
ConfigPath: m.ConfigPath,
|
ConfigPath: m.ConfigPath,
|
||||||
ConnectionInfo: machine.ConnectionConfig{},
|
ConnectionInfo: machine.ConnectionConfig{
|
||||||
Created: m.Created,
|
PodmanSocket: podmanSocket,
|
||||||
|
},
|
||||||
|
Created: m.Created,
|
||||||
Image: machine.ImageConfig{
|
Image: machine.ImageConfig{
|
||||||
IgnitionFile: m.IgnitionFile,
|
IgnitionFile: m.IgnitionFile,
|
||||||
ImageStream: "",
|
ImageStream: "",
|
||||||
|
Reference in New Issue
Block a user