nicetoolbox.utils.config.config_fill_auto¶
- nicetoolbox.utils.config.config_fill_auto(config, working_directory=None)[source]¶
This function fills placeholders in the configuration data with auto-generated values.
- Parameters:
config (dict) – The configuration data to be processed.
working_directory (str, optional) – The directory where the git repository
located. (is) – Defaults to the current working directory.
- Returns:
The configuration data with placeholders replaced with auto-generated values.
- Return type:
dict
Note
This function uses the oslab_utils.git_utils module to get the git hash and commit message. The placeholders filled are: <git_hash>, <commit_message>, <me>, <yyyymmdd>, <today>, and <time>.