Skip to content

Commit f765862

Browse files
committed
remove changes to RunCommandFlow
1 parent f2a6de8 commit f765862

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cloudshell/devices/flows/cli_action_flows.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@ def execute_flow(self, path, vrf, timeout):
109109

110110

111111
class RunCommandFlow(BaseCliFlow):
112-
def __init__(self, cli_handler, logger, action_map=None, error_map=None):
112+
def __init__(self, cli_handler, logger):
113113
super(RunCommandFlow, self).__init__(cli_handler, logger)
114-
self._action_map = action_map
115-
self._error_map = error_map
116114

117115
def execute_flow(self, custom_command="", is_config=False):
118116
""" Execute flow which run custom command on device
@@ -143,8 +141,7 @@ def execute_flow(self, custom_command="", is_config=False):
143141

144142
with self._cli_handler.get_cli_service(mode) as session:
145143
for cmd in commands:
146-
responses.append(session.send_command(command=cmd, action_map=self._action_map,
147-
error_map=self._error_map))
144+
responses.append(session.send_command(command=cmd))
148145
return '\n'.join(responses)
149146

150147

0 commit comments

Comments
 (0)