From b4972517a4f408b3208da9ebf4399e062f4abb9d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 27 Sep 2018 11:38:21 +0200 Subject: [PATCH] module: fix name for ArgValidator_DictConnection The name is actually not ever used, because ArgValidator_DictConnection() is never validated directly. Instead, it is always nested inside ArgValidator_ListConnections() which passes "connections[$IDX]" as name to self.nested._validate(). Anyway, still when looking at the name of a ArgValidator_DictConnection instance, it makes slightly more sense to call it just "connection". --- module_utils/network_lsr/argument_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_utils/network_lsr/argument_validator.py b/module_utils/network_lsr/argument_validator.py index 5edc827..413f246 100644 --- a/module_utils/network_lsr/argument_validator.py +++ b/module_utils/network_lsr/argument_validator.py @@ -628,7 +628,7 @@ class ArgValidator_DictConnection(ArgValidatorDict): def __init__(self): ArgValidatorDict.__init__( self, - name="connections[?]", + name="connection", nested=[ ArgValidatorStr("name"), ArgValidatorStr(