From 7d892870f92c12b72a85a16c9e2a2c78ff0d347f Mon Sep 17 00:00:00 2001 From: Antoine Pietri <antoine.pietri1@gmail.com> Date: Fri, 1 Dec 2017 15:30:49 +0100 Subject: [PATCH] cookers: change default config path to vault/cooker --- swh/vault/cookers/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swh/vault/cookers/base.py b/swh/vault/cookers/base.py index f8eb1a6..7fc6d6b 100644 --- a/swh/vault/cookers/base.py +++ b/swh/vault/cookers/base.py @@ -19,6 +19,7 @@ from swh.storage import get_storage from swh.vault.api.client import RemoteVaultClient +DEFAULT_CONFIG_PATH = 'vault/cooker' DEFAULT_CONFIG = { 'storage': ('dict', { 'cls': 'remote', @@ -53,7 +54,8 @@ class BaseVaultCooker(metaclass=abc.ABCMeta): cache: the cache where to store the bundle obj_id: id of the object to be cooked into a bundle. """ - self.config = config.load_named_config('vault-cooker', DEFAULT_CONFIG) + self.config = config.load_named_config(DEFAULT_CONFIG_PATH, + DEFAULT_CONFIG) self.obj_type = obj_type self.obj_id = hashutil.hash_to_bytes(obj_id) self.backend = RemoteVaultClient(self.config['vault_url']) -- GitLab