diff options
Diffstat (limited to 'plugins')
3 files changed, 9 insertions, 3 deletions
diff --git a/plugins/module_utils/network/vyos/config/lag_interfaces/lag_interfaces.py b/plugins/module_utils/network/vyos/config/lag_interfaces/lag_interfaces.py index af49f42e..290f3b3b 100644 --- a/plugins/module_utils/network/vyos/config/lag_interfaces/lag_interfaces.py +++ b/plugins/module_utils/network/vyos/config/lag_interfaces/lag_interfaces.py @@ -120,7 +120,9 @@ class Lag_interfaces(ConfigBase): state = self._module.params["state"] if state in ("merged", "replaced", "overridden") and not want: self._module.fail_json( - msg="config is required for state {0}".format(state) + msg="value of config parameter must not be empty for state {0}".format( + state + ) ) if state == "overridden": commands.extend(self._state_overridden(want, have)) diff --git a/plugins/module_utils/network/vyos/config/lldp_global/lldp_global.py b/plugins/module_utils/network/vyos/config/lldp_global/lldp_global.py index 85708740..303d46a6 100644 --- a/plugins/module_utils/network/vyos/config/lldp_global/lldp_global.py +++ b/plugins/module_utils/network/vyos/config/lldp_global/lldp_global.py @@ -106,7 +106,9 @@ class Lldp_global(ConfigBase): state = self._module.params["state"] if state in ("merged", "replaced") and not want: self._module.fail_json( - msg="config is required for state {0}".format(state) + msg="value of config parameter must not be empty for state {0}".format( + state + ) ) if state == "deleted": commands.extend(self._state_deleted(want=None, have=have)) diff --git a/plugins/module_utils/network/vyos/config/lldp_interfaces/lldp_interfaces.py b/plugins/module_utils/network/vyos/config/lldp_interfaces/lldp_interfaces.py index 6b76296c..aa0bd365 100644 --- a/plugins/module_utils/network/vyos/config/lldp_interfaces/lldp_interfaces.py +++ b/plugins/module_utils/network/vyos/config/lldp_interfaces/lldp_interfaces.py @@ -117,7 +117,9 @@ class Lldp_interfaces(ConfigBase): state = self._module.params["state"] if state in ("merged", "replaced", "overridden") and not want: self._module.fail_json( - msg="config is required for state {0}".format(state) + msg="value of config parameter must not be empty for state {0}".format( + state + ) ) if state == "overridden": commands.extend(self._state_overridden(want=want, have=have)) |