Skip to content

[thermalctld] Fix 'NameError("name 'chassis' is not defined")' error in log #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

noaOrMlnx
Copy link
Collaborator

@noaOrMlnx noaOrMlnx commented Apr 6, 2021

Description

Changed the chassis definition to be a part of the class so the chassis will be found in run() function

Motivation and Context

Without the change, an error appears in syslog.
ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")

How Has This Been Tested?

N/A

Additional Information (Optional)

@noaOrMlnx noaOrMlnx requested a review from jleveque April 6, 2021 08:20
@keboliu
Copy link
Collaborator

keboliu commented Apr 6, 2021

@Junchao-Mellanox, please also review

@jleveque jleveque changed the title Fix 'NameError("name 'chassis' is not defined")' error in thermalctld log [thermalctld] Fix 'NameError("name 'chassis' is not defined")' error in log Apr 7, 2021
@jleveque jleveque merged commit 0bd9f69 into sonic-net:master Apr 7, 2021
@noaOrMlnx noaOrMlnx deleted the fix_chassis_error branch April 8, 2021 14:48
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.

5 participants