Open inspired opened 1 month ago
The custom validator I have defined in globalConfig.json for interval is being overridden by a validator that only supports integers:
fields = [ field.RestField( 'interval', required=True, encrypted=False, default=None, validator=validator.Pattern( regex=r"""^\-[1-9]\d*$|^\d*$""", ) ),
Error message: Schedule must be either a non-negative number or -1.
inputs.conf allows for interval = [<decimal>|<cron schedule>] and this has worked in previous versions of UCC.
interval = [<decimal>|<cron schedule>]
splunk-add-on-ucc-framework==5.49.0
Python 3.9
Created a https://splunk.atlassian.net/browse/ADDON-73348 for it.
Description
The custom validator I have defined in globalConfig.json for interval is being overridden by a validator that only supports integers:
fields = [ field.RestField( 'interval', required=True, encrypted=False, default=None, validator=validator.Pattern( regex=r"""^\-[1-9]\d*$|^\d*$""", ) ),
Error message: Schedule must be either a non-negative number or -1.
inputs.conf allows for
interval = [<decimal>|<cron schedule>]
and this has worked in previous versions of UCC.What UCC version are you using?
splunk-add-on-ucc-framework==5.49.0
Additional System Info
Python 3.9