Skip to content

Commit

Permalink
Merge pull request #6 from dnmvisser/dv_fix_trailing_args_issue
Browse files Browse the repository at this point in the history
Fix issue with trailing args. Also fix append issue
  • Loading branch information
dnmvisser authored Mar 30, 2020
2 parents 5f20b60 + 864a481 commit 527061c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nagios-testssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ def nagios_exit(message, code):
# Set command and arguments
subproc_args = [
testssl,
'--append',
'--jsonfile-pretty',
temp_path,
]

# Remove '--' separator from the trailing arguments
trailing_args.remove('--')
if '--' in trailing_args:
trailing_args.remove('--')

# Add the trailing arguments
subproc_args.extend(trailing_args)
Expand Down

0 comments on commit 527061c

Please # to comment.