mirror of
https://github.com/clearlinux/WALinuxAgent.git
synced 2026-09-01 02:44:44 +00:00
Fix alpine DHCP pid detection (#456)
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
committed by
Ahmet Alp Balkan
parent
c3532dd93a
commit
ef3d68857c
@@ -29,7 +29,7 @@ class AlpineOSUtil(DefaultOSUtil):
|
||||
return True
|
||||
|
||||
def get_dhcp_pid(self):
|
||||
ret = shellutil.run_get_output("pidof udhcpc", chk_err=False)
|
||||
ret = shellutil.run_get_output('pidof dhcpcd', chk_err=False)
|
||||
return ret[1] if ret[0] == 0 else None
|
||||
|
||||
def set_ssh_client_alive_interval(self):
|
||||
|
||||
Reference in New Issue
Block a user