Add option to skip log output to logger

Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2022-11-03 12:18:57 +03:00 committed by abereziny
parent dc0f115a73
commit c6603dbf84
2 changed files with 9 additions and 3 deletions

View file

@ -44,12 +44,14 @@ class CommandOptions:
timeout: Timeout for command execution (in seconds).
check: Controls whether to check return code of the command. Set to False to
ignore non-zero return codes.
no_log: Do not print output to logger if True.
"""
interactive_inputs: Optional[list[InteractiveInput]] = None
close_stdin: bool = False
timeout: int = 30
check: bool = True
no_log: bool = False
@dataclass