Merge "[API] Don't allow null values for health monitor inputs"

This commit is contained in:
Jenkins
2013-11-22 14:15:12 +00:00
committed by Gerrit Code Review

View File

@@ -116,9 +116,13 @@ class HealthMonitorController(RestController):
# Check inputs
if (
body.type == Unset or
body.type is None or
body.delay == Unset or
body.delay is None or
body.timeout == Unset or
body.attemptsBeforeDeactivation == Unset
body.timeout is None or
body.attemptsBeforeDeactivation == Unset or
body.attemptsBeforeDeactivation is None
):
session.rollback()
raise ClientSideError(