mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-24 18:26:51 +03:00
Fix --validate-config exit code (#24398)
Validate config exists 0 regardless of if the config is valid or not. This makes it not very useful for CI Tiny fix to bail non-zero if the config is invalid
This commit is contained in:
@@ -99,6 +99,10 @@ def main() -> None:
|
||||
print("*** End Config Validation Errors ***")
|
||||
print("*************************************************************")
|
||||
|
||||
# force a non-zero exit code for config failures
|
||||
if args.validate_config:
|
||||
sys.exit(1)
|
||||
|
||||
# attempt to start Frigate in recovery mode
|
||||
try:
|
||||
config = FrigateConfig.load(install=True, safe_load=True)
|
||||
|
||||
Reference in New Issue
Block a user