cognite-extractor-utils 6.3.1__py3-none-any.whl → 6.3.2__py3-none-any.whl
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.
Potentially problematic release.
This version of cognite-extractor-utils might be problematic. Click here for more details.
- cognite/extractorutils/__init__.py +1 -1
- cognite/extractorutils/configtools/loaders.py +4 -3
- {cognite_extractor_utils-6.3.1.dist-info → cognite_extractor_utils-6.3.2.dist-info}/METADATA +1 -1
- {cognite_extractor_utils-6.3.1.dist-info → cognite_extractor_utils-6.3.2.dist-info}/RECORD +6 -6
- {cognite_extractor_utils-6.3.1.dist-info → cognite_extractor_utils-6.3.2.dist-info}/LICENSE +0 -0
- {cognite_extractor_utils-6.3.1.dist-info → cognite_extractor_utils-6.3.2.dist-info}/WHEEL +0 -0
|
@@ -61,7 +61,8 @@ class KeyVaultLoader:
|
|
|
61
61
|
"Include an `azure-keyvault` section in your config to use the !keyvault tag."
|
|
62
62
|
)
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
keyvault_name = self.config.get("keyvault-name")
|
|
65
|
+
if not keyvault_name:
|
|
65
66
|
raise InvalidConfigError("Please add the keyvault-name")
|
|
66
67
|
|
|
67
68
|
if "authentication-method" not in self.config:
|
|
@@ -70,7 +71,7 @@ class KeyVaultLoader:
|
|
|
70
71
|
"Possible values are: default or client-secret"
|
|
71
72
|
)
|
|
72
73
|
|
|
73
|
-
vault_url = f"https://{
|
|
74
|
+
vault_url = f"https://{keyvault_name}.vault.azure.net"
|
|
74
75
|
|
|
75
76
|
if self.config["authentication-method"] == KeyVaultAuthenticationMethod.DEFAULT.value:
|
|
76
77
|
_logger.info("Using Azure DefaultCredentials to access KeyVault")
|
|
@@ -151,7 +152,7 @@ def _load_yaml_dict(
|
|
|
151
152
|
if not isinstance(source, str):
|
|
152
153
|
source.seek(0)
|
|
153
154
|
|
|
154
|
-
keyvault_config = initial_load.get("azure-keyvault")
|
|
155
|
+
keyvault_config = initial_load.get("azure-keyvault", initial_load.get("key-vault"))
|
|
155
156
|
|
|
156
157
|
_EnvLoader.add_implicit_resolver("!env", re.compile(r"\$\{([^}^{]+)\}"), None)
|
|
157
158
|
_EnvLoader.add_constructor("!env", _env_constructor)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
cognite/extractorutils/__init__.py,sha256=
|
|
1
|
+
cognite/extractorutils/__init__.py,sha256=X7tmNy4D8099iyXkXH1QrvXWk2l-Q2z5KWymIjB-J2Y,739
|
|
2
2
|
cognite/extractorutils/_inner_util.py,sha256=jCPLg-FfTpyLAHkhoKaKObNwbqm19d2Z11to_DYk5EU,1558
|
|
3
3
|
cognite/extractorutils/base.py,sha256=8kzePjVlCIQVftDQ1t_4join9qhs-VOlB6eTpeX9zGk,16018
|
|
4
4
|
cognite/extractorutils/configtools/__init__.py,sha256=fj9kH8DdisNi9mI8cKm2sz50vnzeOkJQErIGB3mTYRo,2861
|
|
5
5
|
cognite/extractorutils/configtools/_util.py,sha256=SZycZm_py9v9WZbDiDQbgS6_PiLtu-TtwuuH7tG2YCI,4739
|
|
6
6
|
cognite/extractorutils/configtools/elements.py,sha256=OgNuLF6iOBnPsANwMsSRrJ_0KwBngD_ZKIgE4NZfOOc,20626
|
|
7
|
-
cognite/extractorutils/configtools/loaders.py,sha256=
|
|
7
|
+
cognite/extractorutils/configtools/loaders.py,sha256=s4tHuNgBhk6TnrDDifIYQX8CickXVSqVCol9E62DPIs,14969
|
|
8
8
|
cognite/extractorutils/exceptions.py,sha256=PERRmySUfJRM2Ta8cFvADTe-KUdXsoMLKdk4140AOHI,1061
|
|
9
9
|
cognite/extractorutils/metrics.py,sha256=PFrOO0yDRGaFiJmNLXModKY7CW1gvHDBtPaoK-ETCxw,15508
|
|
10
10
|
cognite/extractorutils/middleware.py,sha256=d5bnKEOmC49QmoBK7OyM9krOGDYX8sXxM00wRWKhmHg,1108
|
|
@@ -21,7 +21,7 @@ cognite/extractorutils/uploader/time_series.py,sha256=ZPkz9NVCmz2vE7SkRm0-LjYi-Z
|
|
|
21
21
|
cognite/extractorutils/uploader_extractor.py,sha256=K8cH8CIDiFNB0fXNdUymE_MKh1GYfqxHHcRoH07CFew,7673
|
|
22
22
|
cognite/extractorutils/uploader_types.py,sha256=5MKT14DUnTFVD5Nx4Zvnfp2SfaICuTKLWAFAYaZishk,1045
|
|
23
23
|
cognite/extractorutils/util.py,sha256=GDDpsoOQpgoTHUWVAUjWxGdulgOQovlD8yBWp_kObp8,14234
|
|
24
|
-
cognite_extractor_utils-6.3.
|
|
25
|
-
cognite_extractor_utils-6.3.
|
|
26
|
-
cognite_extractor_utils-6.3.
|
|
27
|
-
cognite_extractor_utils-6.3.
|
|
24
|
+
cognite_extractor_utils-6.3.2.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
25
|
+
cognite_extractor_utils-6.3.2.dist-info/METADATA,sha256=9anL2vuUyAut2x8fe1wpUys1J0rEJmDQYINyshCsMCk,5560
|
|
26
|
+
cognite_extractor_utils-6.3.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
27
|
+
cognite_extractor_utils-6.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|