Skip to content

Commit

Permalink
Don't delete temporary variables at the end of block
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey <[email protected]>
  • Loading branch information
fuljo and sshnaidm authored Dec 4, 2023
1 parent cb26f6f commit 772bfda
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/module_utils/podman/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def run_generate_systemd_command(module, module_params, name, version):
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
if sysconf.get('start_timeout') is not None:
command.extend(['--start-timeout=%s' % sysconf['start_timeout']])
if sysconf.get('no_header'):
Expand Down

0 comments on commit 772bfda

Please sign in to comment.