Skip to content

Commit

Permalink
Fix validation of 'comment' parameter in http_acknowledge_problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-N committed Apr 11, 2018
1 parent 26516b0 commit 047878d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nagios-api
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def http_acknowledge_problem(req, objid, reqobj):
if obj is None:
return json_error(req, 'Failed to find host or service to update.')

if not 'comment':
if not comment:
return json_error(req, 'Required parameter "comment" not found.')

try:
Expand Down

0 comments on commit 047878d

Please sign in to comment.