Skip to content

Commit

Permalink
Fix typo in parameter name --stop-timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Fulgini <[email protected]>
  • Loading branch information
fuljo committed Dec 3, 2023
1 parent 24c744d commit cb26f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/podman/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def run_generate_systemd_command(module, module_params, name, version):
sysconf['restart_policy']])
if sysconf.get('restart_sec') is not None:
command.extend(['--restart-sec=%s' % sysconf['restart_sec']])
if sysconf.get('stop_timeout') is not None or sysconf.get('time') is not None:
if (sysconf.get('stop_timeout') is not None) or (sysconf.get('time') is not None):
# Select correct parameter name based on version
arg_name = 'stop_timeout' if gt4ver else 'time'
arg_name = 'stop-timeout' if gt4ver else 'time'
arg_value = sysconf.get('stop_timeout') if sysconf.get('stop_timeout') is not None else sysconf.get('time')
command.extend(['--%s=%s' % (arg_name, arg_value)])
del arg_name, arg_value
Expand Down

0 comments on commit cb26f6f

Please sign in to comment.