From fc0f20a35e32be6c965fafae7b99b86b22f0b578 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Mon, 14 Jan 2019 15:13:43 +0530 Subject: [PATCH] Add missing parameters in get_config vyos (#50855) Signed-off-by: Trishna Guha --- lib/ansible/module_utils/network/vyos/vyos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/network/vyos/vyos.py b/lib/ansible/module_utils/network/vyos/vyos.py index ac54cf1cc8..98abc1e031 100644 --- a/lib/ansible/module_utils/network/vyos/vyos.py +++ b/lib/ansible/module_utils/network/vyos/vyos.py @@ -90,7 +90,8 @@ def get_capabilities(module): return module._vyos_capabilities -def get_config(module): +def get_config(module, flags=None, format=None): + flags = [] if flags is None else flags global _DEVICE_CONFIGS if _DEVICE_CONFIGS != {}: @@ -98,7 +99,7 @@ def get_config(module): else: connection = get_connection(module) try: - out = connection.get_config() + out = connection.get_config(flags=flags, format=format) except ConnectionError as exc: module.fail_json(msg=to_text(exc, errors='surrogate_then_replace')) cfg = to_text(out, errors='surrogate_then_replace').strip()