diff --git a/lib/ansible/module_utils/netcli.py b/lib/ansible/module_utils/netcli.py index 1f47cb239d..ccb7e73bf9 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)