mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-22 17:09:08 -07: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:
parent
deae5b1bce
commit
2e8a3efccb
13 changed files with 33 additions and 84 deletions
|
@ -22,7 +22,6 @@ __metaclass__ = type
|
|||
import json
|
||||
|
||||
from units.compat.mock import patch
|
||||
from ansible.module_utils.basic import get_timestamp
|
||||
from ansible.modules.network.ios import ios_command
|
||||
from units.modules.utils import set_module_args
|
||||
from .ios_module import TestIosModule, load_fixture
|
||||
|
@ -47,7 +46,6 @@ class TestIosCommandModule(TestIosModule):
|
|||
def load_from_file(*args, **kwargs):
|
||||
module, commands = args
|
||||
output = list()
|
||||
timestamps = list()
|
||||
|
||||
for item in commands:
|
||||
try:
|
||||
|
@ -57,8 +55,7 @@ class TestIosCommandModule(TestIosModule):
|
|||
command = item['command']
|
||||
filename = str(command).replace(' ', '_')
|
||||
output.append(load_fixture(filename))
|
||||
timestamps.append(get_timestamp())
|
||||
return output, timestamps
|
||||
return output
|
||||
|
||||
self.run_commands.side_effect = load_from_file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue