fixes broken run_commands() method (#21478)

This commit is contained in:
Peter Sprygada 2017-02-15 12:12:59 -05:00 committed by GitHub
parent f98d41c121
commit 2d14cdc5ac

View file

@ -338,14 +338,15 @@ def to_command(module, commands):
elif is_text(item['command']): elif is_text(item['command']):
item['output'] = 'text' item['output'] = 'text'
return commands
def get_config(module, flags=[]): def get_config(module, flags=[]):
conn = get_connection(module) conn = get_connection(module)
return conn.get_config(flags) return conn.get_config(flags)
def run_commands(module, commands, check_rc=True): def run_commands(module, commands, check_rc=True):
conn = get_connection(module) conn = get_connection(module)
to_command(module, commands) return conn.run_commands(to_command(module, commands))
return conn.run_commands(commands)
def load_config(module, config): def load_config(module, config):
conn = get_connection(module) conn = get_connection(module)