Skip to content
Snippets Groups Projects

Add a --check-config option for cli commands

  1. Aug 25, 2020
    • David Douard's avatar
      Add a --check-config option for cli commands · 4532a4dc
      David Douard authored
      this allows to specify on command line wether to check the configuration
      and read or write access to the storage at startup time (especially for
      `rpc-server` and `replay` commands.)
      
      Warning: this option defaults to "read" for the backfill command and
      "write" for rpc-serve and replay commands, so now the creation of
      the Storage instance used in cli commands *will be checked*.
      
      Closes T2525.
      4532a4dc
    • David Douard's avatar
      Remove the deprecated config-path option from `swh storage rpc-serve` command · 2a35c0bb
      David Douard authored
      include the validation of the presence of a "storage" config section
      in the main `storage` click.group, where the config-file is actually
      parsed.
      2a35c0bb
Loading