fixes broken run_commands() method (#21478)

pull/21479/head
Peter Sprygada 8 years ago committed by GitHub
parent f98d41c121
commit 2d14cdc5ac

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

Loading…
Cancel
Save