mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-09 21:51:41 +08:00
Make CLI non josn output visible
This commit is contained in:
parent
1bcd032d56
commit
b436dc2aad
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ def entrypoint(*args, **kwargs):
|
|||
**kwargs.pop("op_args"), __no_threads=True
|
||||
)
|
||||
if not json_output:
|
||||
if not isinstance(result, bool):
|
||||
logger.info(f"{result}")
|
||||
logger.info(f"Operation finished with {'success' if result else 'failure'}")
|
||||
else:
|
||||
print(json.dumps(result, default=serialize_datetime))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue