Skip to content

[Edge-core][AS5812-54X] fixes : Inconsistent use of tabs and spaces in …#11766

Closed
roger530-ho wants to merge 1 commit intosonic-net:masterfrom
roger530-ho:as5812-54x_fix_1
Closed

[Edge-core][AS5812-54X] fixes : Inconsistent use of tabs and spaces in …#11766
roger530-ho wants to merge 1 commit intosonic-net:masterfrom
roger530-ho:as5812-54x_fix_1

Conversation

@roger530-ho
Copy link
Contributor

Signed-off-by: Roger Ho [email protected]

Why I did it

To startup as5812-platform-monitor.service fail.

Debug:
admin@sonic:~$ /usr/local/bin/accton_as5812_monitor.py
Traceback (most recent call last):
File "/usr/local/bin/accton_as5812_monitor.py", line 33, in
from as5812_54x.fanutil import FanUtil
File "/usr/lib/python3/dist-packages/as5812_54x/fanutil.py", line 138
val_file.close()
TabError: inconsistent use of tabs and spaces in indentation

How I did it

Replace tab with space

How to verify it

admin@sonic:~$ systemctl status as5812-platform-monitor.service
● as5812-platform-monitor.service - Accton AS5812-54X Platform Monitoring service
Loaded: loaded (/lib/systemd/system/as5812-platform-monitor.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-08-18 01:07:37 UTC; 2h 10min ago
Process: 25347 ExecStartPre=/usr/local/bin/accton_as5812_util.py install (code=exited, status=0/SUCCESS)
Main PID: 25357 (python)
Tasks: 1 (limit: 9477)
Memory: 7.5M
CGroup: /system.slice/as5812-platform-monitor.service
└─25357 python /usr/local/bin/accton_as5812_monitor.py

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
    --> customer requirement
  • 202205
    --> customer requirement

Description for the changelog

Replace tab with space

Link to config_db schema for YANG module changes

N/A

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

…indentation

Replace tab with space.

Signed-off-by: Roger Ho <[email protected]>
@roger530-ho roger530-ho requested a review from lguohan as a code owner August 18, 2022 03:23
@roger530-ho
Copy link
Contributor Author

Fix that in #16982

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.

1 participant