mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-28 16:16:41 +00:00
Task add method push_key
This commit is contained in:
@@ -195,10 +195,7 @@ class Tasks(Command):
|
||||
if value.get("msg"):
|
||||
msg[key] = value.get("msg")
|
||||
|
||||
if not msg:
|
||||
return {"status": "ok"}
|
||||
else:
|
||||
return {"status": "failed","msg": msg}
|
||||
return {"status": "ok"} if msg else {"status": "failed","msg": msg}
|
||||
|
||||
|
||||
def add_user(self, user):
|
||||
|
Reference in New Issue
Block a user