HomeSoftware Heritage

rpc/server: compute make_app_from_configfile's default value at exec time

Description

rpc/server: compute make_app_from_configfile's default value at exec time

for the config_file argument, rather than declaration time.

This is required so that if this function is called with None as first
argument (which is what happens in cli.py when user do not specify a
config file option).

Long story short, this fixes the rpc-server cli command: if a config file
is not explicitely given as option, fall back to default config file search
behavior instead of crashing.

Details

Provenance
douarddaAuthored on May 17 2019, 11:35 AM
douarddaPushed on May 17 2019, 1:26 PM
Differential Revision
D1481: cli: replace the 'vault' cmd with cli group with a 'rpc-serve' subcmd
Parents
rDVAUf42442b5ec94: cli: replace the 'vault' cmd with cli group with a 'rpc-serve' subcmd
Branches
Unknown
Tags
Unknown
Build Status
Buildable 5783
Build 7921: test-and-build