mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
actions: Fix issue with docstring causing issues with Sphnix
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
80498919fb
commit
1b218666f4
@ -134,11 +134,16 @@ def _run(action, options=None, input=None, run_in_background=False,
|
||||
"""Safely run a specific action as a normal user or root.
|
||||
|
||||
Actions are pulled from the actions directory.
|
||||
|
||||
- options are added to the action command.
|
||||
|
||||
- input: data (as bytes) that will be sent to the action command's stdin.
|
||||
|
||||
- run_in_background: run asynchronously or wait for the command to
|
||||
complete.
|
||||
|
||||
- run_as_root: execute the command through sudo.
|
||||
|
||||
"""
|
||||
if options is None:
|
||||
options = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user