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']):
|
||||
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…
Reference in a new issue