oc-cdtapi 3.33.3__py3-none-any.whl → 3.33.5__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.
- oc_cdtapi/VaultAPI.py +2 -2
- {oc_cdtapi-3.33.3.dist-info → oc_cdtapi-3.33.5.dist-info}/METADATA +1 -1
- {oc_cdtapi-3.33.3.dist-info → oc_cdtapi-3.33.5.dist-info}/RECORD +7 -7
- {oc_cdtapi-3.33.3.data → oc_cdtapi-3.33.5.data}/scripts/nexus.py +0 -0
- {oc_cdtapi-3.33.3.dist-info → oc_cdtapi-3.33.5.dist-info}/WHEEL +0 -0
- {oc_cdtapi-3.33.3.dist-info → oc_cdtapi-3.33.5.dist-info}/licenses/LICENSE +0 -0
- {oc_cdtapi-3.33.3.dist-info → oc_cdtapi-3.33.5.dist-info}/top_level.txt +0 -0
oc_cdtapi/VaultAPI.py
CHANGED
|
@@ -54,7 +54,7 @@ class VaultAPI:
|
|
|
54
54
|
|
|
55
55
|
def _parse_secret_name(self, name: str) -> List[str]:
|
|
56
56
|
if not SECRET_PATTERN.match(name):
|
|
57
|
-
raise ValueError("Secret name must match <PATH>__<KEY>")
|
|
57
|
+
raise ValueError(f"Secret name must match <PATH>__<KEY> for secret name {name}")
|
|
58
58
|
|
|
59
59
|
return name.split("__", 1)
|
|
60
60
|
|
|
@@ -83,7 +83,7 @@ class VaultAPI:
|
|
|
83
83
|
if value is not None:
|
|
84
84
|
return value
|
|
85
85
|
|
|
86
|
-
is_test = os.getenv("PYTHON_ENV") == "test"
|
|
86
|
+
is_test = os.getenv("PYTHON_ENV", "").lower() == "test"
|
|
87
87
|
if is_test:
|
|
88
88
|
name = f"{name}_TEST"
|
|
89
89
|
value = self.get_secret_from_path(name=name)
|
|
@@ -10,11 +10,11 @@ oc_cdtapi/PgAPI.py,sha256=URSz7qu-Ir7AOj0jI3ucTXn2PM-nC96nmPZI746OLjA,14356
|
|
|
10
10
|
oc_cdtapi/PgQAPI.py,sha256=p2nDGrnU5juobumwq9QiVPxcsX6bHAtipUHBBxFrOeE,10312
|
|
11
11
|
oc_cdtapi/RundeckAPI.py,sha256=O3LmcFaHSz8UqeUyIHTTEMJncDD191Utd-iZaeJay2s,24243
|
|
12
12
|
oc_cdtapi/TestServer.py,sha256=HV97UWg2IK4gOYAp9yaMdwFUWsw9v66MxyZdI3qQctA,2715
|
|
13
|
-
oc_cdtapi/VaultAPI.py,sha256=
|
|
13
|
+
oc_cdtapi/VaultAPI.py,sha256=GXc14Hgh48SF6YPJEn42mNbZKe756LEbuIjCal6MSMk,3547
|
|
14
14
|
oc_cdtapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
oc_cdtapi-3.33.
|
|
16
|
-
oc_cdtapi-3.33.
|
|
17
|
-
oc_cdtapi-3.33.
|
|
18
|
-
oc_cdtapi-3.33.
|
|
19
|
-
oc_cdtapi-3.33.
|
|
20
|
-
oc_cdtapi-3.33.
|
|
15
|
+
oc_cdtapi-3.33.5.data/scripts/nexus.py,sha256=4teqZ_KtCSrwHDJVgA7lkreteod4Xt5XJFZNbwb7E6E,6858
|
|
16
|
+
oc_cdtapi-3.33.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
oc_cdtapi-3.33.5.dist-info/METADATA,sha256=QA71lpAdOp0K_5_ul07Mf8WD9Vhq5Fz6AeosCTL9LKE,504
|
|
18
|
+
oc_cdtapi-3.33.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
19
|
+
oc_cdtapi-3.33.5.dist-info/top_level.txt,sha256=d4-5-D-0CSeSXYuLCP7-nIFCpjkfmJr-Y_muzds8iVU,10
|
|
20
|
+
oc_cdtapi-3.33.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|