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.
pull/61512/head
Ganesh Nalawade 5 years ago committed by GitHub
parent aa58bb9d43
commit d7845da326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save