Skip to content

Commit

Permalink
[Edgecore][device][platform] Fixed lgtm error 1.
Browse files Browse the repository at this point in the history
Signed-off-by: michael_shih <michael_shih@edge-core.com>
  • Loading branch information
ec-michael-shih committed Dec 5, 2022
1 parent bd7b980 commit 737aca1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#
#############################################################################

import shlex
import subprocess


try:
from sonic_platform_base.component_base import ComponentBase
from .helper import APIHelper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import struct
import subprocess
import json
import fcntl
from mmap import *
Expand Down Expand Up @@ -77,7 +76,7 @@ def ipmi_fru_id(self, id, key=None):
status = True
result = ""
try:
if key == None:
if (key is None):
err, raw_data = getstatusoutput_noshell_pipe(['ipmitool', 'fru', 'print', str(id)])
else:
err, raw_data = getstatusoutput_noshell_pipe(['ipmitool', 'fru', 'print', str(id)], ['grep', str(key)])
Expand Down

0 comments on commit 737aca1

Please sign in to comment.