mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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.
|
"""Safely run a specific action as a normal user or root.
|
||||||
|
|
||||||
Actions are pulled from the actions directory.
|
Actions are pulled from the actions directory.
|
||||||
|
|
||||||
- options are added to the action command.
|
- options are added to the action command.
|
||||||
|
|
||||||
- input: data (as bytes) that will be sent to the action command's stdin.
|
- 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
|
- run_in_background: run asynchronously or wait for the command to
|
||||||
complete.
|
complete.
|
||||||
|
|
||||||
- run_as_root: execute the command through sudo.
|
- run_as_root: execute the command through sudo.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if options is None:
|
if options is None:
|
||||||
options = []
|
options = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user