mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-11 22:51:42 +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
|
**kwargs.pop("op_args"), __no_threads=True
|
||||||
)
|
)
|
||||||
if not json_output:
|
if not json_output:
|
||||||
|
if not isinstance(result, bool):
|
||||||
|
logger.info(f"{result}")
|
||||||
logger.info(f"Operation finished with {'success' if result else 'failure'}")
|
logger.info(f"Operation finished with {'success' if result else 'failure'}")
|
||||||
else:
|
else:
|
||||||
print(json.dumps(result, default=serialize_datetime))
|
print(json.dumps(result, default=serialize_datetime))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue