diff options
| author | omnom62 <omnom62@outlook.com> | 2026-09-16 11:14:08 +1000 |
|---|---|---|
| committer | omnom62 <omnom62@outlook.com> | 2026-09-16 11:14:08 +1000 |
| commit | d182306a5680c288fca3838395bba689f0626055 (patch) | |
| tree | 5674ba6b0a0d9fd507f09a0712cbd44657354a1b /plugins/module_utils/vyos.py | |
| parent | 2150da570d603ba2c4d6319a54e300bb479ba945 (diff) | |
| download | rest.vyos-T8989_update_get_vaule.tar.gz rest.vyos-T8989_update_get_vaule.zip | |
T8989: get_values - AI fixes, add unit testT8989_update_get_vaule
Diffstat (limited to 'plugins/module_utils/vyos.py')
| -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.""" |
