very minor whitespace fixes
This commit is contained in:
parent
bbb4599165
commit
b94fee2242
|
|
@ -365,4 +365,4 @@ def pid_exists(pid: int):
|
||||||
try:
|
try:
|
||||||
return any(subprocess.check_output(['/usr/bin/ps', '--no-headers', '-o', 'pid', '-p', str(pid)]).strip())
|
return any(subprocess.check_output(['/usr/bin/ps', '--no-headers', '-o', 'pid', '-p', str(pid)]).strip())
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ from .general import SysCommand
|
||||||
from .output import log
|
from .output import log
|
||||||
from .storage import storage
|
from .storage import storage
|
||||||
|
|
||||||
|
|
||||||
def get_hw_addr(ifname):
|
def get_hw_addr(ifname):
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', bytes(ifname, 'utf-8')[:15]))
|
info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', bytes(ifname, 'utf-8')[:15]))
|
||||||
|
|
@ -35,6 +36,7 @@ def check_mirror_reachable():
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def enrich_iface_types(interfaces: dict):
|
def enrich_iface_types(interfaces: dict):
|
||||||
result = {}
|
result = {}
|
||||||
for iface in interfaces:
|
for iface in interfaces:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue