splunk / contentctl

Splunk Content Control Tool
Apache License 2.0
93 stars 25 forks source link

Option to not fail on missing detection during metadata check #299

Closed pyth0n1c closed 4 weeks ago

pyth0n1c commented 1 month ago

add new option to contentctl inspect that makes missing detections NTT an error - instead just print a warning message.

patel-bhavin commented 1 month ago

Tested this : suppression worked correctly when added to the CLI however, when I do not add that flag, i should be getting errors and I did not. Here's the command that I used:

contentctl inspect --splunk-api-username "$APPINSPECTUSERNAME" --splunk-api-password "$APPINSPECTPASSWORD" --stack_type victoria --enrichments --enable-metadata-validation --supress_missing_content_exceptions

and lets use hypens in the flag name to keep it consistent : update to use --suppress-missing-content-exceptions

minor typo in supress

pyth0n1c commented 4 weeks ago

closing this PR out as is was superceded by https://github.com/splunk/contentctl/pull/305