xenoslib 0.1.29.17__tar.gz → 0.1.29.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xenoslib-0.1.29.17/xenoslib.egg-info → xenoslib-0.1.29.18}/PKG-INFO +1 -1
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/about.py +1 -1
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/extend.py +3 -3
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18/xenoslib.egg-info}/PKG-INFO +1 -1
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/LICENSE +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/README.md +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/setup.cfg +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/setup.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/__init__.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/__main__.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/base.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/dev.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/linux.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/mail.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/mock.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/onedrive.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/win_trayicon.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib/windows.py +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib.egg-info/SOURCES.txt +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib.egg-info/dependency_links.txt +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib.egg-info/requires.txt +0 -0
- {xenoslib-0.1.29.17 → xenoslib-0.1.29.18}/xenoslib.egg-info/top_level.txt +0 -0
|
@@ -213,12 +213,12 @@ class ConfigLoader(SingletonWithArgs):
|
|
|
213
213
|
>>> config = ConfigLoader("config.yml", vault_secret_id="my-secret-id")
|
|
214
214
|
"""
|
|
215
215
|
|
|
216
|
+
cache = {}
|
|
217
|
+
|
|
216
218
|
def __init__(self, config_file_path="config.yml", vault_secret_id=None):
|
|
217
219
|
"""Initialize the ConfigLoader with a configuration file and optional Vault secret."""
|
|
218
220
|
with open(config_file_path, "r") as f:
|
|
219
221
|
self._raw_config = yaml.safe_load(f) or {}
|
|
220
|
-
|
|
221
|
-
self.cache = {}
|
|
222
222
|
self.vault_client = None
|
|
223
223
|
|
|
224
224
|
if vault_secret_id is not None:
|
|
@@ -291,9 +291,9 @@ class ConfigLoader(SingletonWithArgs):
|
|
|
291
291
|
)
|
|
292
292
|
|
|
293
293
|
cache_key = f"{section}_{key_name}"
|
|
294
|
+
|
|
294
295
|
if use_cache and cache_key in self.cache:
|
|
295
296
|
return self.cache[cache_key]
|
|
296
|
-
|
|
297
297
|
value = self._get_value_from_vault(section, key_name)
|
|
298
298
|
self.cache[cache_key] = value
|
|
299
299
|
return value
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|