Change cliconf get() method signature with explicit args (#33341)

* Change cliconf get() method signature to explicit args instead of *args and **kwargs

* updates doc string
This commit is contained in:
Kedar K 2017-11-28 21:40:58 +05:30 committed by GitHub
parent 0592fd47bc
commit 6749a39dbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 30 additions and 38 deletions

View file

@ -85,8 +85,8 @@ class Cliconf(CliconfBase):
for cmd in chain([b'configure terminal'], to_list(command), [b'end']):
self.send_command(cmd)
def get(self, *args, **kwargs):
return self.send_command(*args, **kwargs)
def get(self, command, prompt=None, answer=None, sendonly=False):
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
def get_capabilities(self):
result = {}