1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-21 15:33:45 +03:00

Refactor command parameter handling to ensure default values are set correctly

This commit is contained in:
Adolfo Gómez García
2025-10-21 02:25:37 +02:00
parent ba74a800d8
commit d049215951

View File

@@ -311,10 +311,10 @@ class Register(ActorV3Action):
if 'commands' in self._params:
commands = self._params['commands']
data = {
'pre_command': commands.get('pre_command', ''),
'post_command': commands.get('post_command', ''),
'run_once_command': commands.get('run_once_command', ''),
'custom': self._params.get('custom', ''),
'pre_command': commands.get('pre_command') or '',
'post_command': commands.get('post_command') or '',
'run_once_command': commands.get('run_once_command') or '',
'custom': self._params.get('custom') or '',
}
else:
data = {