Skip to content

Fix typo in pddf_current_sensor constructor#22997

Merged
Praveen-Brcm merged 1 commit intosonic-net:masterfrom
michaelc-nexthop:fix_pddf_current_sensor_constructor_bug
Jul 9, 2025
Merged

Fix typo in pddf_current_sensor constructor#22997
Praveen-Brcm merged 1 commit intosonic-net:masterfrom
michaelc-nexthop:fix_pddf_current_sensor_constructor_bug

Conversation

@michaelc-nexthop
Copy link
Contributor

@michaelc-nexthop michaelc-nexthop commented Jun 16, 2025

Why I did it

Line #27 self.display_name = self.sensor_data should be self.display_name = self.sensor_obj
See https://github.com/sonic-net/sonic-buildimage/pull/22444/files#r2142117886 for reference.
Fixes #22996

Work item tracking
  • Microsoft ADO (number only):

How I did it

Incorporate review comment feedback

How to verify it

Add pddf_current_sensor in a pddf-device.json file

Which release branch to backport (provide reason below if selected)

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Line sonic-net#27 self.display_name = self.sensor_data should be self.display_name = self.sensor_obj
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@lotus-nexthop lotus-nexthop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lotus-nexthop
Copy link
Contributor

lotus-nexthop commented Jun 17, 2025

@Praveen-Brcm @FuzailBrcm @geans-pin

Please take a look, thanks!

@michaelc-nexthop michaelc-nexthop marked this pull request as ready for review June 17, 2025 22:44
@zjswhhh zjswhhh requested a review from StormLiangMS June 18, 2025 15:44
@lotus-nexthop
Copy link
Contributor

Hi @Praveen-Brcm could you help merge? Thank you!

@Praveen-Brcm Praveen-Brcm merged commit f23fbad into sonic-net:master Jul 9, 2025
12 checks passed
YairRaviv pushed a commit to YairRaviv/sonic-buildimage that referenced this pull request Jul 15, 2025
Line sonic-net#27 self.display_name = self.sensor_data should be self.display_name = self.sensor_obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Fix instantiation for pddf current sensor

5 participants