mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Revert nxos, ios, iosxr return_timestamps (#56206)
* Revert "nxos_command:run_commands results failure when commands array size >1 (#52670)" This reverts commit0df5b92af3. * Revert "added timestamps to nxos_command module (#50261)" This reverts commite150943314. * Revert "added timestamps to ios_command module (#50323)" This reverts commit2a432a093b. * Revert "added response_timestamps to iosxr_command module (#50095)" This reverts commit2a0c356da9.
This commit is contained in:
@@ -198,7 +198,7 @@ def main():
|
||||
match = module.params['match']
|
||||
|
||||
while retries > 0:
|
||||
responses, timestamps = run_commands(module, commands, return_timestamps=True)
|
||||
responses = run_commands(module, commands)
|
||||
|
||||
for item in list(conditionals):
|
||||
if item(responses):
|
||||
@@ -221,7 +221,6 @@ def main():
|
||||
result.update({
|
||||
'stdout': responses,
|
||||
'stdout_lines': list(to_lines(responses)),
|
||||
'timestamps': timestamps
|
||||
})
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
@@ -178,7 +178,7 @@ def main():
|
||||
match = module.params['match']
|
||||
|
||||
while retries > 0:
|
||||
responses, timestamps = run_commands(module, commands, return_timestamps=True)
|
||||
responses = run_commands(module, commands)
|
||||
|
||||
for item in list(conditionals):
|
||||
if item(responses):
|
||||
@@ -201,7 +201,6 @@ def main():
|
||||
result.update({
|
||||
'stdout': responses,
|
||||
'stdout_lines': list(to_lines(responses)),
|
||||
'timestamps': timestamps
|
||||
})
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
@@ -188,7 +188,8 @@ def main():
|
||||
match = module.params['match']
|
||||
|
||||
while retries > 0:
|
||||
responses, timestamps = run_commands(module, commands, return_timestamps=True)
|
||||
responses = run_commands(module, commands)
|
||||
|
||||
for item in list(conditionals):
|
||||
try:
|
||||
if item(responses):
|
||||
@@ -213,7 +214,6 @@ def main():
|
||||
result.update({
|
||||
'stdout': responses,
|
||||
'stdout_lines': list(to_lines(responses)),
|
||||
'timestamps': timestamps
|
||||
})
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
Reference in New Issue
Block a user