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:
Ganesh Nalawade 2019-08-29 10:32:38 +05:30 committed by GitHub
parent aa58bb9d43
commit d7845da326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {}