Skip to content

Commit

Permalink
fix styling issues
Browse files Browse the repository at this point in the history
Signed-off-by: MICHELE GAZZETTI <Michele.Gazzetti1@ibm.com>
  • Loading branch information
mgazz committed Feb 23, 2024
1 parent 3d5bbb6 commit fc3c6d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sunfish/events/redfish_event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = []
Expand Down Expand Up @@ -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"]:
Expand Down

0 comments on commit fc3c6d6

Please sign in to comment.