Merge pull request #17424 from privateip/fix-17408
removes unneeded code from netcli
This commit is contained in:
commit
666b19869b
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue