mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
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:
parent
0592fd47bc
commit
6749a39dbe
13 changed files with 30 additions and 38 deletions
|
@ -69,12 +69,10 @@ class Cliconf(CliconfBase):
|
|||
for cmd in chain(['configure'], to_list(command)):
|
||||
self.send_command(cmd)
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
command = kwargs.get('command')
|
||||
return self.send_command(command)
|
||||
def get(self, command, prompt=None, answer=None, sendonly=False):
|
||||
return self.send_command(command, prompt=prompt, answer=answer, sendonly=sendonly)
|
||||
|
||||
def commit(self, *args, **kwargs):
|
||||
comment = kwargs.get('comment', None)
|
||||
def commit(self, comment=None):
|
||||
command = b'commit'
|
||||
if comment:
|
||||
command += b' comment {0}'.format(comment)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue