forked from p15670423/monkey
Common: Add validation that timeout >= 0 in ICMPScanConfigurationSchema
This commit is contained in:
parent
af015c788c
commit
d8bccde276
|
@ -85,7 +85,7 @@ class ScanTargetConfigurationSchema(Schema):
|
||||||
|
|
||||||
|
|
||||||
class ICMPScanConfigurationSchema(Schema):
|
class ICMPScanConfigurationSchema(Schema):
|
||||||
timeout = fields.Float()
|
timeout = fields.Float(validate=validate.Range(min=0))
|
||||||
|
|
||||||
@post_load
|
@post_load
|
||||||
def _make_icmp_scan_configuration(self, data, **kwargs):
|
def _make_icmp_scan_configuration(self, data, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue