diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-09-28 12:31:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-28 12:31:28 +0100 |
| commit | 972789f9b770052f2cf34a14071240bfdcdc9471 (patch) | |
| tree | 60f82fb8e1038e0b6686b5fea15fad0f25345c1d /plugins/module_utils | |
| parent | d32f4a7b6f4174f8de180c1d12864005021c8bee (diff) | |
| parent | 683e120725c4b03b671ac66ce47b2fceccf6f8ba (diff) | |
| download | rest.vyos-T8989_lag_interfaces_dict_op_refactor.tar.gz rest.vyos-T8989_lag_interfaces_dict_op_refactor.zip | |
Merge branch 'main' into T8989_lag_interfaces_dict_op_refactorT8989_lag_interfaces_dict_op_refactor
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.""" |
