aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-03 23:58:35 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-03 23:58:35 +0300
commitbcb96b332d85723b2d9821859be4f893791ea483 (patch)
tree69ff5e604dbcd35f83560b07ef34415e1cea7b3d
parentserver.py: return status 500 on error in app.py (diff)
downloadlinux-status-bcb96b332d85723b2d9821859be4f893791ea483.tar.gz
linux-status-bcb96b332d85723b2d9821859be4f893791ea483.zip
app.py: fix a typing bug
-rwxr-xr-xapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index e852561..020d55a 100755
--- a/app.py
+++ b/app.py
@@ -225,7 +225,7 @@ class UserInstanceStatusTask(InstanceStatusTask):
@staticmethod
def su(user):
- systemctl = lambda *args: Systemd.su(user.name, Systemctl.user(*args))
+ systemctl = lambda *args: Systemd.su(user, Systemctl.user(*args))
return UserInstanceStatusTask(systemctl)