Skip to content

Commit

Permalink
[device/celestica]: using sonic-py-common package
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung committed Sep 23, 2020
1 parent 4389b9d commit e9148ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import struct
import subprocess
from sonic_daemon_base.daemon_base import DaemonBase
from sonic_py_common import device_info
from mmap import *

HOST_CHK_CMD = "docker > /dev/null 2>&1"
Expand All @@ -13,7 +13,7 @@
class APIHelper():

def __init__(self):
(self.platform, self.hwsku) = DaemonBase().get_platform_and_hwsku()
(self.platform, self.hwsku) = device_info.get_platform_and_hwsku()

def is_host(self):
return os.system(HOST_CHK_CMD) == 0
Expand Down

0 comments on commit e9148ee

Please sign in to comment.