fixes broken run_commands() method (#21478)
This commit is contained in:
parent
f98d41c121
commit
2d14cdc5ac
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue