diff options
| author | omnom62 <75066712+omnom62@users.noreply.github.com> | 2026-09-01 21:15:32 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-01 21:15:32 +1000 |
| commit | c8dcb394848add05a13f634b562f1bff8d1d3552 (patch) | |
| tree | 85caa8c38a270fdc003a143d9da170b75900dde0 /plugins/module_utils | |
| parent | cc3bc7ce03effd04f04ce70e2d3d0f2993a7aebb (diff) | |
| parent | 97c43a34bd953a06bfe6c4b010ab79f645bac061 (diff) | |
| download | rest.vyos-c8dcb394848add05a13f634b562f1bff8d1d3552.tar.gz rest.vyos-c8dcb394848add05a13f634b562f1bff8d1d3552.zip | |
Merge branch 'main' into T8989_vyos_hostname_SIT_fix
Diffstat (limited to 'plugins/module_utils')
| -rw-r--r-- | plugins/module_utils/vyos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/module_utils/vyos.py b/plugins/module_utils/vyos.py index bdbc2c4..f7c17f9 100644 --- a/plugins/module_utils/vyos.py +++ b/plugins/module_utils/vyos.py @@ -151,7 +151,7 @@ def cast_by_spec(entry, options): spec_type = spec.get("type") if spec_type == "int": val = entry[key] - if isinstance(val, list): + if isinstance(val, list) and len(val) <= 1: val = val[0] if val else None entry[key] = int(val) if val is not None else None elif spec_type == "dict": |
