diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-09-28 12:41:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-28 12:41:37 +0100 |
| commit | 1d7675d34c3b391a5e358dffc11a3cb7433d4e87 (patch) | |
| tree | 8e3bfc20dc621371af85b9d62e89b4f3e1838c01 /plugins/module_utils | |
| parent | 52ac43a8cce92e60fac80c57c54181a2b8d50550 (diff) | |
| parent | 916b2cc86b29aabe3778be8fa88393f6a5324832 (diff) | |
| download | rest.vyos-t8989_vyos_vrf.tar.gz rest.vyos-t8989_vyos_vrf.zip | |
Merge branch 'main' into t8989_vyos_vrft8989_vyos_vrf
Diffstat (limited to 'plugins/module_utils')
| -rw-r--r-- | plugins/module_utils/vyos.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/module_utils/vyos.py b/plugins/module_utils/vyos.py index 82e9727..382394b 100644 --- a/plugins/module_utils/vyos.py +++ b/plugins/module_utils/vyos.py @@ -320,7 +320,8 @@ class VyOSModule: that's actually already correct. """ result = self._client.retrieve_return_value(path) - return result.get("data") or "" + data = result.get("data") + return "" if data is None else data def apply_commands(self, commands): if not commands: @@ -372,7 +373,8 @@ class VyOSModule: rather than being indistinguishable from a valid empty response. """ result = self._client.show(path) - return result.get("data") or "" + data = result.get("data") + return "" if data is None else data def save_config(self, file_path=None): """Save the running configuration to disk.""" |
