Fix error running without any clients defined
The soar bus crashes if the data/clients.json
file is missing. This file is created by the api when the first client is created.
Options:
- Catch the FileNotFoundError and default to an empty object in the soar_bus like it does in the API
- Create a default
admin
client the first time the API is started
I'm tempted to do both.
-
Catch FileNotFoundError for
./data/clients.json
in soar bus -
Create a default
admin
client the first time the API is run -
Test running
run-compose.sh
from a fresh clone