Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

pmp-check-mongo: use argv passed as function argument #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nagios/bin/pmp-check-mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def parse_options(args):

# Add options for output stat file
try:
result = p.parse_args()
result = p.parse_args(args)
except OptionParsingError, e:
if 'no such option' in e.msg:
return return_result("critical", "No such options of %s" % e.msg.split(":")[1])
Expand Down