diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-09-28 12:24:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-28 12:24:27 +0100 |
| commit | aef11cbeafe5b9472a1f3e9bbd2049f726596dc2 (patch) | |
| tree | 45e527539ba9e5c306ae6744387f7b360ce50508 /plugins/module_utils | |
| parent | 05e6ebf86285aeb439456c1acc039d66aa3a1f61 (diff) | |
| parent | 9a0deaabf0d046db4e99c20d09b04e8c2f5fef1c (diff) | |
| download | rest.vyos-T8989_vyos_ospf_interfaces_dict_op.tar.gz rest.vyos-T8989_vyos_ospf_interfaces_dict_op.zip | |
Merge branch 'main' into T8989_vyos_ospf_interfaces_dict_opT8989_vyos_ospf_interfaces_dict_op
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 f7c17f9..b7a519e 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.""" |
