Skip to content

Commit aceeef4

Browse files
authored
testing the current version (#119)
Signed-off-by: Tullio Sebastiani <[email protected]>
1 parent 1051a31 commit aceeef4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ The documentation is automatically generated by [Sphinx](https://www.sphinx-doc.
3030
of the [reStructuredText Docstring Format](https://peps.python.org/pep-0287/) comments present in the code.
3131

3232

33+

src/krkn_lib/k8s/krkn_kubernetes.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ def get_kubeconfig_path(self) -> str:
219219
kubeconfig.close()
220220
return kubeconfig_path
221221

222-
def get_version(self) -> str:
223-
222+
def get_version(self) -> str:
224223
try:
225224
api_response = self.version_client.get_code()
226225
major_version = api_response.major

src/krkn_lib/models/telemetry/models.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class ChaosRunTelemetry:
218218

219219
affected_pods: PodsStatus = PodsStatus()
220220

221-
def __init__(self, json_object: any = None):
221+
def __init__(self, json_dict: any = None):
222222
self.scenarios = list[ScenarioTelemetry]()
223223
self.node_summary_infos = list[NodeInfo]()
224224
self.node_taints = list[Taint]()
@@ -227,8 +227,8 @@ def __init__(self, json_object: any = None):
227227
self.timestamp = datetime.now(timezone.utc).strftime(
228228
"%Y-%m-%dT%H:%M:%SZ"
229229
)
230-
if json_object is not None:
231-
scenarios = json_object.get("scenarios")
230+
if json_dict is not None:
231+
scenarios = json_dict.get("scenarios")
232232
if scenarios is None or isinstance(scenarios, list) is False:
233233
raise Exception("scenarios param must be a list of object")
234234
for scenario in scenarios:
@@ -248,8 +248,8 @@ def __init__(self, json_object: any = None):
248248
self.kubernetes_objects_count = json_dict.get(
249249
"kubernetes_objects_count"
250250
)
251-
self.network_plugins = json_object.get("network_plugins")
252-
self.run_uuid = json_object.get("run_uuid")
251+
self.network_plugins = json_dict.get("network_plugins")
252+
self.run_uuid = json_dict.get("run_uuid")
253253

254254
def to_json(self) -> str:
255255
return json.dumps(self, default=lambda o: o.__dict__, indent=4)

0 commit comments

Comments
 (0)