From fbda7d127faa48c11a59f1d406739224babed26b Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Tue, 6 Sep 2016 16:35:06 -0400 Subject: [PATCH] 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 anything --- lib/ansible/module_utils/netcli.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ansible/module_utils/netcli.py b/lib/ansible/module_utils/netcli.py index fe32126309..fee693e12b 100644 --- a/lib/ansible/module_utils/netcli.py +++ b/lib/ansible/module_utils/netcli.py @@ -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)