automizor 0.4.8__py3-none-any.whl → 0.4.9__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.
- automizor/__init__.py +1 -1
- automizor/datastore/_datastore.py +2 -2
- automizor/job/_job.py +1 -1
- automizor/storage/_storage.py +6 -6
- automizor/vault/_vault.py +3 -3
- {automizor-0.4.8.dist-info → automizor-0.4.9.dist-info}/METADATA +1 -1
- {automizor-0.4.8.dist-info → automizor-0.4.9.dist-info}/RECORD +10 -10
- {automizor-0.4.8.dist-info → automizor-0.4.9.dist-info}/WHEEL +1 -1
- {automizor-0.4.8.dist-info → automizor-0.4.9.dist-info}/LICENSE +0 -0
- {automizor-0.4.8.dist-info → automizor-0.4.9.dist-info}/top_level.txt +0 -0
automizor/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = "0.4.
|
1
|
+
version = "0.4.9"
|
@@ -89,7 +89,7 @@ class DataStore:
|
|
89
89
|
exc.response, "Failed to get datastore values"
|
90
90
|
) from exc
|
91
91
|
except Exception as exc:
|
92
|
-
raise AutomizorError("Failed to get datastore values") from exc
|
92
|
+
raise AutomizorError(f"Failed to get datastore values: {exc}") from exc
|
93
93
|
|
94
94
|
def _set_values(self, name: str, values: JSON) -> None:
|
95
95
|
url = f"https://{self.url}/api/v1/workflow/datastore/{name}/values/"
|
@@ -101,4 +101,4 @@ class DataStore:
|
|
101
101
|
exc.response, "Failed to set datastore values"
|
102
102
|
) from exc
|
103
103
|
except Exception as exc:
|
104
|
-
raise AutomizorError("Failed to set datastore values") from exc
|
104
|
+
raise AutomizorError(f"Failed to set datastore values: {exc}") from exc
|
automizor/job/_job.py
CHANGED
automizor/storage/_storage.py
CHANGED
@@ -92,7 +92,7 @@ class Storage:
|
|
92
92
|
exc.response, "Failed to list assets"
|
93
93
|
) from exc
|
94
94
|
except Exception as exc:
|
95
|
-
raise AutomizorError("Failed to list assets") from exc
|
95
|
+
raise AutomizorError(f"Failed to list assets: {exc}") from exc
|
96
96
|
return asset_names
|
97
97
|
|
98
98
|
def delete_asset(self, name: str):
|
@@ -116,7 +116,7 @@ class Storage:
|
|
116
116
|
exc.response, "Failed to delete asset"
|
117
117
|
) from exc
|
118
118
|
except Exception as exc:
|
119
|
-
raise AutomizorError("Failed to delete asset") from exc
|
119
|
+
raise AutomizorError(f"Failed to delete asset: {exc}") from exc
|
120
120
|
|
121
121
|
def get_bytes(self, name: str) -> bytes:
|
122
122
|
"""
|
@@ -238,7 +238,7 @@ class Storage:
|
|
238
238
|
exc.response, "Failed to create asset"
|
239
239
|
) from exc
|
240
240
|
except Exception as exc:
|
241
|
-
raise AutomizorError("Failed to create asset") from exc
|
241
|
+
raise AutomizorError(f"Failed to create asset: {exc}") from exc
|
242
242
|
|
243
243
|
def _download_file(self, name: str, mode: str = "content"):
|
244
244
|
url = self._get_asset_url(name)
|
@@ -260,7 +260,7 @@ class Storage:
|
|
260
260
|
exc.response, "Failed to download asset"
|
261
261
|
) from exc
|
262
262
|
except Exception as exc:
|
263
|
-
raise AutomizorError("Failed to download asset") from exc
|
263
|
+
raise AutomizorError(f"Failed to download asset: {exc}") from exc
|
264
264
|
|
265
265
|
def _get_asset_url(self, name: str) -> str:
|
266
266
|
url = f"https://{self.url}/api/v1/storage/asset/{name}/"
|
@@ -277,7 +277,7 @@ class Storage:
|
|
277
277
|
exc.response, "Failed to get asset URL"
|
278
278
|
) from exc
|
279
279
|
except Exception as exc:
|
280
|
-
raise AutomizorError("Failed to get asset URL") from exc
|
280
|
+
raise AutomizorError(f"Failed to get asset URL: {exc}") from exc
|
281
281
|
|
282
282
|
def _update_asset(self, name: str, content: bytes, content_type: str):
|
283
283
|
"""
|
@@ -307,4 +307,4 @@ class Storage:
|
|
307
307
|
exc.response, "Failed to update asset"
|
308
308
|
) from exc
|
309
309
|
except Exception as exc:
|
310
|
-
raise AutomizorError("Failed to update asset") from exc
|
310
|
+
raise AutomizorError(f"Failed to update asset: {exc}") from exc
|
automizor/vault/_vault.py
CHANGED
@@ -122,7 +122,7 @@ class Vault:
|
|
122
122
|
exc.response, "Failed to create secret"
|
123
123
|
) from exc
|
124
124
|
except Exception as exc:
|
125
|
-
raise AutomizorError("Failed to create secret") from exc
|
125
|
+
raise AutomizorError(f"Failed to create secret: {exc}") from exc
|
126
126
|
|
127
127
|
def _get_secret(self, name: str) -> SecretContainer:
|
128
128
|
url = f"https://{self.url}/api/v1/vault/secret/{name}/"
|
@@ -135,7 +135,7 @@ class Vault:
|
|
135
135
|
exc.response, "Failed to get secret"
|
136
136
|
) from exc
|
137
137
|
except Exception as exc:
|
138
|
-
raise AutomizorError("Failed to get secret") from exc
|
138
|
+
raise AutomizorError(f"Failed to get secret: {exc}") from exc
|
139
139
|
|
140
140
|
def _update_secret(self, secret: SecretContainer) -> SecretContainer:
|
141
141
|
url = f"https://{self.url}/api/v1/vault/secret/{secret.name}/"
|
@@ -148,4 +148,4 @@ class Vault:
|
|
148
148
|
exc.response, "Failed to update secret"
|
149
149
|
) from exc
|
150
150
|
except Exception as exc:
|
151
|
-
raise AutomizorError("Failed to update secret") from exc
|
151
|
+
raise AutomizorError(f"Failed to update secret: {exc}") from exc
|
@@ -1,20 +1,20 @@
|
|
1
|
-
automizor/__init__.py,sha256=
|
1
|
+
automizor/__init__.py,sha256=ElLL68L1maenU2D5V6AoUj5l5Opu9EHBBw3V9qIFxV4,18
|
2
2
|
automizor/exceptions.py,sha256=P5imySIOtG3ZIk2kh41Yod4RnlgTj7Vf0P3M-RuxQJs,1382
|
3
3
|
automizor/datastore/__init__.py,sha256=_rAdRfKnTa4SuSLl9GkAYziBPPLsy6yGfS0HprgokOk,2418
|
4
4
|
automizor/datastore/_container.py,sha256=rHRkSWaRgy2rk6Qy-7ADFKvuET_COZ2i9VD7gvRDnlM,745
|
5
|
-
automizor/datastore/_datastore.py,sha256=
|
5
|
+
automizor/datastore/_datastore.py,sha256=EW8AnZPvr32Yz3bC6SxadRgihY7_G-XcwSfLV5CMzMg,3552
|
6
6
|
automizor/job/__init__.py,sha256=pDqSfR4lAyJNCi-fpG6byUPidHz8sntBs0bB2lJFVAY,1118
|
7
|
-
automizor/job/_job.py,sha256=
|
7
|
+
automizor/job/_job.py,sha256=oVv7utlpaIPVBSnBXcV9jf7B3UNsWCDLtPkw0m3IJio,5444
|
8
8
|
automizor/log/__init__.py,sha256=gEr2SuwN1FgX1NMnbphjg8_gfSic9L15H3WC868A-TQ,2104
|
9
9
|
automizor/log/_log.py,sha256=P9jAFXVANs5bAGH6-S0pzuSbRKEcX8VlQ_3uu690awE,2948
|
10
10
|
automizor/storage/__init__.py,sha256=RF4ccSAd0UepvJx5NFiotKt9mVr5WiZCb_4qrJ5OKx0,4140
|
11
|
-
automizor/storage/_storage.py,sha256=
|
11
|
+
automizor/storage/_storage.py,sha256=ah8sCpRQm0MOnZgOgiBQF1Oamq_mz1VWrV17z6XOuFw,11262
|
12
12
|
automizor/utils/__init__.py,sha256=W0JNrn7GByjJXi60djS6vluo__Tj6AyJioqu9D41tto,952
|
13
13
|
automizor/vault/__init__.py,sha256=21Ag2zQk7x27Bh0yt_kSO2MkgT3eafbdlKe0NuQEqr8,1796
|
14
14
|
automizor/vault/_container.py,sha256=-2y7kASigoIVAebuQBk-0R_sI4gfmvjsMLuMg_tR1xA,1945
|
15
|
-
automizor/vault/_vault.py,sha256
|
16
|
-
automizor-0.4.
|
17
|
-
automizor-0.4.
|
18
|
-
automizor-0.4.
|
19
|
-
automizor-0.4.
|
20
|
-
automizor-0.4.
|
15
|
+
automizor/vault/_vault.py,sha256=-Xi_xMQLRB9patFTiZ4Z817F9VEvhIvx-YOOH8z_BKc,5020
|
16
|
+
automizor-0.4.9.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
17
|
+
automizor-0.4.9.dist-info/METADATA,sha256=uNVJ3mjxM7iZZRRzbzTCdCE6FlUYdkXiNqLCJZZSG_c,668
|
18
|
+
automizor-0.4.9.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
19
|
+
automizor-0.4.9.dist-info/top_level.txt,sha256=gScDy4I3tP6BMYAsTAlBXrxVh3E00zV0UioxwXJOI3Y,10
|
20
|
+
automizor-0.4.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|