We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow including other files.
Modify parse_configuration() to get a base config as parameter:
parse_configuration()
-def parse_configuration(config_filename: str) -> Dict[str, Any]: +def parse_configuration(config_filename: str, config_base: Dict[str, Any]) -> Dict[str, Any]: logger.debug(f"Parsing configuration file: {config_filename}") with open(config_filename) as file: config = toml.load(file) - config = deep_update(config_base, dict(config)) + config = deep_update(CONFIG_DEFAULTS, dict(config)) if "name" not in config: config["name"] = os.path.basename(config_filename) jsonschema.validate(instance=config, schema=SCHEMA) return config
Replace
runrestic/runrestic/runrestic/runrestic.py
Line 65 in 7622739
parsed_cfg = parse_configuration(c, CONFIG_DEFAULTS) for include in reversed(config['includes']): parsed_cfg = parse_configuration(include, parsed_cfg)
The text was updated successfully, but these errors were encountered:
as I said in other places: if you have a good reason for such a change and could provide a PR, I might merge it.
Sorry, something went wrong.
darkdragon-001
No branches or pull requests
Allow including other files.
Modify
parse_configuration()
to get a base config as parameter:Replace
runrestic/runrestic/runrestic/runrestic.py
Line 65 in 7622739
The text was updated successfully, but these errors were encountered: