mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2026-10-12 02:12:31 +00:00
The lapi command group's PersistentPreRunE loads the API client credentials before subcommands such as register and status run, so register failed with "no such file or directory" unless the file it is meant to create already existed. Skip that requirement for register when a credentials path is configured, keeping the strict behavior for subcommands that read the LAPI. Fixes #4237