1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #17424 from privateip/fix-17408

removes unneeded code from netcli
This commit is contained in:
Peter Sprygada 2016-09-06 19:23:41 -04:00 committed by GitHub
commit 666b19869b

View file

@ -73,9 +73,6 @@ class Cli(object):
output = output or self.default_output
if isinstance(command, Command):
return command
elif isinstance(command, dict):
output = cmd.get('output') or output
cmd = cmd['command']
if isinstance(prompt, string_types):
prompt = re.compile(re.escape(prompt))
return Command(command, output, prompt=prompt, response=response, **kwargs)