From 5ffa049d2b45c9d1e3e6ab4a32db0622f164aeef Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 6 Jan 2024 15:37:08 -0700 Subject: [PATCH] [pfense] Fix message for multiple elements --- plugins/module_utils/pfsense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/pfsense.py b/plugins/module_utils/pfsense.py index 77bf09c8..7236e04d 100644 --- a/plugins/module_utils/pfsense.py +++ b/plugins/module_utils/pfsense.py @@ -159,7 +159,7 @@ def find_elt_xpath(self, search_xpath, root_elt=None, multiple_ok=False): if multiple_ok: return result else: - self.module.fail_json(msg='Found multiple groups for name {0}.'.format(self.obj['name'])) + self.module.fail_json(msg='Found multiple elements for name {0}.'.format(self.obj['name'])) return None @staticmethod