From 3f6ed8592c747e12f0bb438e999eb8366b7a7099 Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Wed, 31 Aug 2016 23:05:57 -0700 Subject: [PATCH] Fix type error in networkfbsd osmajorrelease compare --- salt/modules/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/network.py b/salt/modules/network.py index 284e40408e..3b3f91f79f 100644 --- a/salt/modules/network.py +++ b/salt/modules/network.py @@ -385,7 +385,7 @@ def _netstat_route_freebsd(): out = __salt__['cmd.run'](cmd, python_shell=True) for line in out.splitlines(): 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({ 'addr_family': 'inet', 'destination': comps[0],