Skip to content

Commit

Permalink
Call ethtool directly (#630)
Browse files Browse the repository at this point in the history
Trying to call /sbin/ethtool causes our job
networking/info_device(number)_(interface) to fail loading additional
information when Checkbox is installed as a snap, because in this case
the location of ethtool is /snap/checkbox22/current/sbin/ethtool

Calling ethtool directly to let the system handle the tool location.

Fix #508
  • Loading branch information
pieqq authored and diohe0311 committed Jul 31, 2023
1 parent 6690c96 commit 34cb5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/base/bin/network_device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Utils():
@staticmethod
def get_ethtool_info(interface, key):
"""Return ethtool information identified by key"""
cmd = ['/sbin/ethtool', interface]
cmd = ['ethtool', interface]
try:
output = check_output(cmd, stderr=STDOUT, universal_newlines=True)
except CalledProcessError:
Expand Down

0 comments on commit 34cb5f4

Please sign in to comment.