Skip to content

Fix build error - #65

Merged
Arvindsrinivasan Lakshmi Narasimhan (arlakshm) merged 1 commit into
Azure:202405from
arlakshm:dev/arlakshm/fix_chassisd
Mar 6, 2026
Merged

Arvindsrinivasan Lakshmi Narasimhan (arlakshm) merged 1 commit into
Azure:202405from
arlakshm:dev/arlakshm/fix_chassisd

Conversation

@arlakshm

https://github.com/Azure/sonic-platform-daemons.msft/pull/62/changes caused the below errors

    
    
        if ((self.module_updater.my_slot == INVALID_SLOT) or
                (self.module_updater.supervisor_slot == INVALID_SLOT)):
            self.log_error("Chassisd not supported for this platform")
            sys.exit(CHASSIS_NOT_SUPPORTED)
    
        try:
            # Start configuration manager task on supervisor module
            if self.module_updater.supervisor_slot == self.module_updater.my_slot:
                self.config_manager = ConfigManagerTask()
                self.config_manager.task_run()
            else:
                self.config_manager = None
    
            # Start main loop
            self.log_info("Start daemon main loop")
    
            while not self.stop.wait(self.loop_interval):
                self.module_updater.module_db_update()
                self.module_updater.check_midplane_reachability()
                self.module_updater.module_down_chassis_db_cleanup()
    
            self.log_info("Stop daemon main loop")
    
>           if config_manager is not None:
E           NameError: name 'config_manager' is not defined


Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <55814491+arlakshm@users.noreply.github.com>
@arlakshm
Arvindsrinivasan Lakshmi Narasimhan (arlakshm) merged commit 69db901 into Azure:202405 Mar 6, 2026
2 checks passed

@arista-nwolfe arista-nwolfe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for catching this, LGTM

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.

3 participants