Skip to content

Commit

Permalink
libcontainer/cgroups/systemd: replace use of deprecated dbus.New()
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Apr 20, 2021
1 parent ba257d2 commit 73f22e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcontainer/cgroups/systemd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package systemd

import (
"bufio"
"context"
"fmt"
"math"
"os"
Expand Down Expand Up @@ -298,7 +299,7 @@ func getDbusConnection(rootless bool) (*systemdDbus.Conn, error) {
if rootless {
connDbus, connErr = NewUserSystemdDbus()
} else {
connDbus, connErr = systemdDbus.New()
connDbus, connErr = systemdDbus.NewWithContext(context.TODO())
}
})
return connDbus, connErr
Expand Down

0 comments on commit 73f22e7

Please sign in to comment.