Skip to content

Commit

Permalink
Fix LGTM error
Browse files Browse the repository at this point in the history
  • Loading branch information
sujinmkang committed Jun 15, 2020
1 parent b21b15e commit e059bb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sonic-pcied/scripts/pcied
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ logger = Logger(SYSLOG_IDENTIFIER)
def check_pcie_devices():
resultInfo = platform_pcieutil.get_pcie_check()
for item in resultInfo:
if item["result"] == "Passed":
else:
if item["result"] != "Passed":
logger.log_warning("PCIe Device: " + item["name"] + " Not Found")
err+=1
if err:
Expand Down

0 comments on commit e059bb3

Please sign in to comment.