Merge pull request #19 from Solvik/feature/python3.5
be python3.4 compatible
This commit is contained in:
commit
a7d766a5fb
1 changed files with 9 additions and 4 deletions
|
@ -19,6 +19,12 @@ field_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def merge_two_dicts(x, y):
|
||||||
|
z = x.copy()
|
||||||
|
z.update(y)
|
||||||
|
return z
|
||||||
|
|
||||||
|
|
||||||
class Ethtool():
|
class Ethtool():
|
||||||
"""
|
"""
|
||||||
This class aims to parse ethtool output
|
This class aims to parse ethtool output
|
||||||
|
@ -67,7 +73,6 @@ class Ethtool():
|
||||||
def parse(self):
|
def parse(self):
|
||||||
if which('ethtool') is None:
|
if which('ethtool') is None:
|
||||||
return None
|
return None
|
||||||
return {
|
output = self._parse_ethtool_output()
|
||||||
**self._parse_ethtool_output(),
|
output.update(self._parse_ethtool_module_output())
|
||||||
**self._parse_ethtool_module_output(),
|
return output
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue