Skip to content

Commit

Permalink
Fix lifecycle monitoring for new cmd socket location
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Apr 13, 2020
1 parent 3d25ff3 commit 101cca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/virt-handler/rest/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (lh *LifecycleHandler) GetUsers(request *restful.Request, response *restful

log.Log.Object(vmi).Infof("Retreiving userlist from %s", vmi.Name)

sockFile := cmdclient.SocketFromUID(lh.virtShareDir, string(vmi.GetUID()))
sockFile := cmdclient.SocketFromUID(lh.virtShareDir, string(vmi.GetUID()), true)
client, err := cmdclient.NewClient(sockFile)
if err != nil {
log.Log.Object(vmi).Reason(err).Error("Failed to connect cmd client")
Expand All @@ -153,7 +153,7 @@ func (lh *LifecycleHandler) GetFilesystems(request *restful.Request, response *r

log.Log.Object(vmi).Infof("Retreiving filesystem list from %s", vmi.Name)

sockFile := cmdclient.SocketFromUID(lh.virtShareDir, string(vmi.GetUID()))
sockFile := cmdclient.SocketFromUID(lh.virtShareDir, string(vmi.GetUID()), true)
client, err := cmdclient.NewClient(sockFile)
if err != nil {
log.Log.Object(vmi).Reason(err).Error("Failed to connect cmd client")
Expand Down

0 comments on commit 101cca7

Please sign in to comment.