Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
Signed-off-by: pettershao-ragilenetworks <pettershao@ragilenetworks.com>
  • Loading branch information
pettershao-ragilenetworks committed Apr 20, 2023
1 parent 5abac06 commit a896915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _init_config(self, index):
new_device_path = "/sys/bus/i2c/devices/i2c-%d/new_device"
new_device_key = sfp_pt2ee_path_list[self._port_id]
self.new_class_path = None if new_device_path is None or new_device_key == 0 else new_device_path % new_device_key
self._sfplog(LOG_DEBUG_LEVEL, "Done init new_class path: %s" % self.new_class_path
self._sfplog(LOG_DEBUG_LEVEL, "Done init new_class path: %s" % self.new_class_path)

if sfp_pt2ee_path_list[self._port_id] != 0:
self.add_new_sfp_device(self._port_id, 0x50)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _init_config(self, index):
new_device_path = "/sys/bus/i2c/devices/i2c-%d/new_device"
new_device_key = sfp_pt2ee_path_list[self._port_id]
self.new_class_path = None if new_device_path is None or new_device_key == 0 else new_device_path % new_device_key
self._sfplog(LOG_DEBUG_LEVEL, "Done init new_class path: %s" % self.new_class_path
self._sfplog(LOG_DEBUG_LEVEL, "Done init new_class path: %s" % self.new_class_path)

if sfp_pt2ee_path_list[self._port_id] != 0:
self.add_new_sfp_device(self._port_id, 0x50)
Expand Down

0 comments on commit a896915

Please sign in to comment.