Fix in get api for eric_eccli cliconf plugin (#61507)
Fixes https://github.com/ansible/ansible/issues/60674 * Fix get() API signature for eric_eccli cliconf plugin to work with cli_command module.
This commit is contained in:
parent
aa58bb9d43
commit
d7845da326
1 changed files with 2 additions and 2 deletions
|
@ -54,13 +54,13 @@ class Cliconf(CliconfBase):
|
|||
def edit_config(self, candidate=None, commit=True, replace=None, comment=None):
|
||||
return
|
||||
|
||||
def get(self, command=None, prompt=None, answer=None, sendonly=False, output=None, check_all=False):
|
||||
def get(self, command=None, prompt=None, answer=None, sendonly=False, output=None, newline=True, check_all=False):
|
||||
if not command:
|
||||
raise ValueError('must provide value of command to execute')
|
||||
if output:
|
||||
raise ValueError("'output' value %s is not supported for get" % output)
|
||||
|
||||
return self.send_command(command=command, prompt=prompt, answer=answer, sendonly=sendonly, check_all=check_all)
|
||||
return self.send_command(command=command, prompt=prompt, answer=answer, sendonly=sendonly, newline=newline, check_all=check_all)
|
||||
|
||||
def get_device_info(self):
|
||||
device_info = {}
|
||||
|
|
Loading…
Reference in a new issue