removes unneeded code from netcli
Some old remnants of code from the refactor of netcli was left over as reported in #17408. This commit removes the old code as it isn't need and in fact wasnt doing anythingpull/4420/head
parent
37f721f315
commit
fbda7d127f
|
@ -73,9 +73,6 @@ class Cli(object):
|
||||||
output = output or self.default_output
|
output = output or self.default_output
|
||||||
if isinstance(command, Command):
|
if isinstance(command, Command):
|
||||||
return command
|
return command
|
||||||
elif isinstance(command, dict):
|
|
||||||
output = cmd.get('output') or output
|
|
||||||
cmd = cmd['command']
|
|
||||||
if isinstance(prompt, string_types):
|
if isinstance(prompt, string_types):
|
||||||
prompt = re.compile(re.escape(prompt))
|
prompt = re.compile(re.escape(prompt))
|
||||||
return Command(command, output, prompt=prompt, response=response, **kwargs)
|
return Command(command, output, prompt=prompt, response=response, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue