diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/module_utils/vyos.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/module_utils/vyos.py b/plugins/module_utils/vyos.py index eee3e56..b7a519e 100644 --- a/plugins/module_utils/vyos.py +++ b/plugins/module_utils/vyos.py @@ -373,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.""" |
