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 {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
podmanSocket, err := m.forwardSocketPath()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
ii := machine.InspectInfo{
|
||||
ConfigPath: m.ConfigPath,
|
||||
ConnectionInfo: machine.ConnectionConfig{
|
||||
PodmanSocket: nil,
|
||||
PodmanSocket: podmanSocket,
|
||||
PodmanPipe: nil,
|
||||
},
|
||||
Created: m.Created,
|
||||
|
@ -290,9 +290,16 @@ func (m *HyperVMachine) Inspect() (*machine.InspectInfo, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
podmanSocket, err := m.forwardSocketPath()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &machine.InspectInfo{
|
||||
ConfigPath: m.ConfigPath,
|
||||
ConnectionInfo: machine.ConnectionConfig{},
|
||||
ConnectionInfo: machine.ConnectionConfig{
|
||||
PodmanSocket: podmanSocket,
|
||||
},
|
||||
Created: m.Created,
|
||||
Image: machine.ImageConfig{
|
||||
IgnitionFile: m.IgnitionFile,
|
||||
|
Reference in New Issue
Block a user