Further update to us in similar to review comments

This commit is contained in:
David Murphy 2017-03-24 10:08:02 -06:00
parent 59c0bdc14d
commit b53a95dab1

View file

@ -741,7 +741,7 @@ def traceroute(host):
continue
if 'Darwin' in str(traceroute_version[1]) or 'FreeBSD' in str(traceroute_version[1]) or \
__grains__['kernel'] == 'SunOS' or __grains__['kernel'] == 'AIX':
__grains__['kernel'] in ('SunOS', 'AIX'):
try:
traceline = re.findall(r'\s*(\d*)\s+(.*)\s+\((.*)\)\s+(.*)$', line)[0]
except IndexError: