actions: Note that privileged actions can't output to stdout

- This can be improved later by using a IPC mechanism other than stdin/stdout.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-06-21 11:30:34 -07:00 committed by James Valleroy
parent 7470821dc7
commit fb70fdef6e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -271,6 +271,8 @@ def privileged(func):
to models.py, views.py and urls.py. Currently supported types are bool,
int, float, str, dict/Dict, list/List, Optional and Union.
Privileged methods many not output to the stdout as it interferes
with the serialization and de-serialization process.
"""
setattr(func, '_privileged', True)