actions: Don't repeat action traceback in stderr

It is already available separately and now printed nicely. In cases where the
exception is caused outside of the action method, continue to print stderr.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2024-03-31 03:37:35 -07:00 committed by James Valleroy
parent 6f0897e702
commit 68b52295e7
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -331,7 +331,6 @@ def _privileged_call(module_name, action_name, arguments):
return_values = func(*arguments['args'], **arguments['kwargs'])
return_value = {'result': 'success', 'return': return_values}
except Exception as exception:
logger.exception('Error executing action: %s', exception)
return_value = {
'result': 'exception',
'exception': {