@@ -218,7 +218,7 @@ class ChaosRunTelemetry:
218
218
219
219
affected_pods : PodsStatus = PodsStatus ()
220
220
221
- def __init__ (self , json_object : any = None ):
221
+ def __init__ (self , json_dict : any = None ):
222
222
self .scenarios = list [ScenarioTelemetry ]()
223
223
self .node_summary_infos = list [NodeInfo ]()
224
224
self .node_taints = list [Taint ]()
@@ -227,8 +227,8 @@ def __init__(self, json_object: any = None):
227
227
self .timestamp = datetime .now (timezone .utc ).strftime (
228
228
"%Y-%m-%dT%H:%M:%SZ"
229
229
)
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" )
232
232
if scenarios is None or isinstance (scenarios , list ) is False :
233
233
raise Exception ("scenarios param must be a list of object" )
234
234
for scenario in scenarios :
@@ -248,8 +248,8 @@ def __init__(self, json_object: any = None):
248
248
self .kubernetes_objects_count = json_dict .get (
249
249
"kubernetes_objects_count"
250
250
)
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" )
253
253
254
254
def to_json (self ) -> str :
255
255
return json .dumps (self , default = lambda o : o .__dict__ , indent = 4 )
0 commit comments