diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-04 13:51:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 13:51:27 +0200 |
commit | 1fe2965e4f672674f7b66648e9973a0ed5434bb4 (patch) | |
tree | 8d5385f5939ff3c139dc2e15b112ce4ad9797b1a /pkg/rootless/rootless_linux.go | |
parent | 1de81bc71704f4a317756c866695740fb6f65a9b (diff) | |
parent | fec1de6ef4b3f769ba0906cda948a3215709cd37 (diff) | |
download | podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.tar.gz podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.tar.bz2 podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.zip |
Merge pull request #3495 from baude/golandcodecleanup
trivial cleanups from golang
Diffstat (limited to 'pkg/rootless/rootless_linux.go')
-rw-r--r-- | pkg/rootless/rootless_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go index f3b9a8fd5..8028a359c 100644 --- a/pkg/rootless/rootless_linux.go +++ b/pkg/rootless/rootless_linux.go @@ -215,7 +215,7 @@ func EnableLinger() (string, error) { // If we have a D-BUS connection, attempt to read the LINGER property from it. if conn != nil { - path := dbus.ObjectPath((fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid))) + path := dbus.ObjectPath(fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid)) ret, err := conn.Object("org.freedesktop.login1", path).GetProperty("org.freedesktop.login1.User.Linger") if err == nil && ret.Value().(bool) { lingerEnabled = true @@ -265,7 +265,7 @@ func EnableLinger() (string, error) { // If we have a D-BUS connection, attempt to read the RUNTIME PATH from it. if conn != nil { - path := dbus.ObjectPath((fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid))) + path := dbus.ObjectPath(fmt.Sprintf("/org/freedesktop/login1/user/_%s", uid)) ret, err := conn.Object("org.freedesktop.login1", path).GetProperty("org.freedesktop.login1.User.RuntimePath") if err == nil { return strings.Trim(ret.String(), "\"\n"), nil |