mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #35975 from kev009/fix-35325
Fix type error in network module for fbsd osmajorrelease compare
This commit is contained in:
commit
870ae49150
@ -385,7 +385,7 @@ def _netstat_route_freebsd():
|
|||||||
out = __salt__['cmd.run'](cmd, python_shell=True)
|
out = __salt__['cmd.run'](cmd, python_shell=True)
|
||||||
for line in out.splitlines():
|
for line in out.splitlines():
|
||||||
comps = line.split()
|
comps = line.split()
|
||||||
if __grains__['os'] == 'FreeBSD' and __grains__.get('osmajorrelease', 0) < 10:
|
if __grains__['os'] == 'FreeBSD' and int(__grains__.get('osmajorrelease', 0)) < 10:
|
||||||
ret.append({
|
ret.append({
|
||||||
'addr_family': 'inet',
|
'addr_family': 'inet',
|
||||||
'destination': comps[0],
|
'destination': comps[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user