HomeSoftware Heritage

JournalClient: change the prefix init argument dafault value to None

Description

JournalClient: change the prefix init argument dafault value to None

and give this None value the special meaning of 'use the default value',
i.e. 'swh.journal.objects' (specifically, the value stored as

swh.journal.DEFAULT_PREFIX).

This is required to make it easier to handle cli arguments and config
values read from the config file. Let the None value be the default
(from the cli config/argument handling) as long as possible and decide
only in the JournalClient what "default" really means.

Details

Provenance
douarddaAuthored on Jun 11 2019, 5:20 PM
douarddaPushed on Jun 12 2019, 1:48 PM
Differential Revision
D1571: cli: fix brokers argument handling (+ a pile of small refactorings)
Parents
rDJNL59181c93d978: Add option object_types to get_journal_client.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 6154
Build 8484: test-and-build