mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix issues related to track feature (#49454)
This commit is contained in:
parent
d20d66dc2f
commit
dd984709f5
2 changed files with 28 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue