From 1f9253c0321e698ee4f570daef9a99e09df4b5ad Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 31 Aug 2016 07:21:59 -0400 Subject: [PATCH] fixes issue with converting commands to an iterable was not being done This fix will now force the commands arg in __call__ to be a list of objects which otherwise would cause netcli not process the stack --- lib/ansible/module_utils/netcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/netcli.py b/lib/ansible/module_utils/netcli.py index 1f47cb239d6..ccb7e73bf94 100644 --- a/lib/ansible/module_utils/netcli.py +++ b/lib/ansible/module_utils/netcli.py @@ -65,7 +65,7 @@ class Cli(object): def __call__(self, commands, output=None): objects = list() - for cmd in commands: + for cmd in to_list(commands): objects.append(self.to_command(cmd, output)) return self.connection.run_commands(objects)