Skip to content

Commit

Permalink
Merge pull request #9 from kolyshkin/openshift-4.8
Browse files Browse the repository at this point in the history
Bug 1965545: [openshift-4.8] libct/cg/sd: fix dbus error handling
  • Loading branch information
kolyshkin authored Jun 8, 2021
2 parents b9ee9c6 + cf41757 commit 1f5126f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/cgroups/systemd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func getUnitName(c *configs.Cgroup) string {
// isDbusError returns true if the error is a specific dbus error.
func isDbusError(err error, name string) bool {
if err != nil {
var derr *dbus.Error
var derr dbus.Error
if errors.As(err, &derr) {
return strings.Contains(derr.Name, name)
}
Expand Down

0 comments on commit 1f5126f

Please sign in to comment.