Make CLI non josn output visible

This commit is contained in:
deajan 2024-04-11 00:52:03 +02:00
parent 1bcd032d56
commit b436dc2aad

View file

@ -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))