mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Update cliconf get_config api (#43472)
* Change `filter` parameter to `flag` to be in sync with original naming convention
This commit is contained in:
parent
c8fcbdef71
commit
857200fa7f
8 changed files with 15 additions and 15 deletions
|
@ -136,7 +136,7 @@ class Cli:
|
|||
except KeyError:
|
||||
conn = self._get_connection()
|
||||
try:
|
||||
out = conn.get_config(filter=flags)
|
||||
out = conn.get_config(flags=flags)
|
||||
except ConnectionError as exc:
|
||||
self._module.fail_json(msg=to_text(exc, errors='surrogate_then_replace'))
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ def get_config(module, flags=None):
|
|||
except KeyError:
|
||||
connection = get_connection(module)
|
||||
try:
|
||||
out = connection.get_config(filter=flags)
|
||||
out = connection.get_config(flags=flags)
|
||||
except ConnectionError as exc:
|
||||
module.fail_json(msg=to_text(exc, errors='surrogate_then_replace'))
|
||||
cfg = to_text(out, errors='surrogate_then_replace').strip()
|
||||
|
|
|
@ -140,7 +140,7 @@ class Cli:
|
|||
except KeyError:
|
||||
connection = self._get_connection()
|
||||
try:
|
||||
out = connection.get_config(filter=flags)
|
||||
out = connection.get_config(flags=flags)
|
||||
except ConnectionError as exc:
|
||||
self._module.fail_json(msg=to_text(exc, errors='surrogate_then_replace'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue