Fix issues related to track feature (#49454)

This commit is contained in:
Mike Wiebe 2018-12-03 23:27:35 -05:00 committed by Trishna Guha
commit dd984709f5
2 changed files with 28 additions and 8 deletions

View file

@ -153,7 +153,7 @@ def get_configured_track(module, ctrack):
track_exists = False
command = 'show track'
try:
body = run_commands(module, [command])
body = run_commands(module, {'command': command, 'output': 'text'})
match = re.findall(r'Track\s+(\d+)', body[0])
except IndexError:
return None