Audit API supports new force option
Depends-on:Ia08694d2fb76907ea14e64116af2e722fe930063 Change-Id: Ib2d221ea9c994dea396c54cc8d2d32237025a1d4 Implements: blueprint add-force-field-to-audit
This commit is contained in:
@@ -165,3 +165,12 @@ def allow_start_end_audit_time():
|
||||
audits.
|
||||
"""
|
||||
return pecan.request.version.minor >= versions.MINOR_1_START_END_TIMING
|
||||
|
||||
|
||||
def allow_force():
|
||||
"""Check if we should support optional force attribute for Audit.
|
||||
|
||||
Version 1.2 of the API added support for forced audits that allows to
|
||||
launch audit when other action plan is ongoing.
|
||||
"""
|
||||
return pecan.request.version.minor >= versions.MINOR_2_FORCE
|
||||
|
||||
Reference in New Issue
Block a user