From fc3c6d61035d360216ee2d6448e425864598fec3 Mon Sep 17 00:00:00 2001 From: MICHELE GAZZETTI Date: Fri, 23 Feb 2024 11:09:11 +0000 Subject: [PATCH] fix styling issues Signed-off-by: MICHELE GAZZETTI --- sunfish/events/redfish_event_handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sunfish/events/redfish_event_handler.py b/sunfish/events/redfish_event_handler.py index c49a987..26338ed 100644 --- a/sunfish/events/redfish_event_handler.py +++ b/sunfish/events/redfish_event_handler.py @@ -139,7 +139,7 @@ def check_subdirs(self, origin): return to_forward - def AggregationSourceDiscovered(self, event,context): + def AggregationSourceDiscovered(self, event, context): ### # Fabric Agents are modelled as AggregationSource objects (RedFish v2023.1 at the time of writing this comment) # Registration will happen with the OFMF receiving a and event with MessageId: AggregationSourceDiscovered @@ -201,13 +201,13 @@ def ResourceCreated(self, event, context): if response.status_code != 200: raise Exception("Cannot find ConnectionMethod") object = response.json() - add_aggregation_source_reference(object,aggregation_source) + add_aggregation_source_reference(object, aggregation_source) self.create_object(id, object) RedfishEventHandler.bfsInspection(self, object, aggregation_source) - self.patch_object(id,aggregation_source) + self.patch_object(id, aggregation_source) def bfsInspection(self, node, aggregation_source): queue = [] @@ -314,11 +314,11 @@ def createInspectedObject(self,redfish_obj, aggregation_source): elif self.get_object(file_path) != redfish_obj: warnings.warn('Resource state changed') except ResourceNotFound: - add_aggregation_source_reference(redfish_obj,aggregation_source) + add_aggregation_source_reference(redfish_obj, aggregation_source) self.create_object(file_path, redfish_obj) -def add_aggregation_source_reference(redfish_obj,aggregation_source): +def add_aggregation_source_reference(redfish_obj, aggregation_source): if "Oem" not in redfish_obj: redfish_obj["Oem"] = {} if "Sunfish_RM" not in redfish_obj["Oem"]: