summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCaptTrews <capttrews@gmail.com>2019-09-20 00:12:55 +0000
committerCaptTrews <capttrews@gmail.com>2019-09-20 00:12:55 +0000
commita0333117eddd25ec1dcb8302a5ae322ccbe1029d (patch)
tree92d21c41c8bbbfb85e83a21b3af8c7b5b2b6c294 /plugins
parent75582948949168ca2eaa04413db09298c52ada95 (diff)
downloadvyos.vyos-a0333117eddd25ec1dcb8302a5ae322ccbe1029d.tar.gz
vyos.vyos-a0333117eddd25ec1dcb8302a5ae322ccbe1029d.zip
Updated from network content collector
Signed-off-by: CaptTrews <capttrews@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/module_utils/network/vyos/config/lag_interfaces/lag_interfaces.py4
-rw-r--r--plugins/module_utils/network/vyos/config/lldp_global/lldp_global.py4
-rw-r--r--plugins/module_utils/network/vyos/config/lldp_interfaces/lldp_interfaces.py4
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))