From b401ab8c5c20a12410549b5302cc51d7f2838b6d Mon Sep 17 00:00:00 2001 From: Allen Robel Date: Thu, 5 Dec 2024 16:55:26 -1000 Subject: [PATCH] Update another conditional Modify another OR-conditional to use the preferred: if X "in" (X, Y, Z): --- plugins/modules/dcnm_vrf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/dcnm_vrf.py b/plugins/modules/dcnm_vrf.py index e0862abe9..4f745223b 100644 --- a/plugins/modules/dcnm_vrf.py +++ b/plugins/modules/dcnm_vrf.py @@ -954,7 +954,7 @@ def update_attach_params(self, attach, vrf_name, deploy, vlanId): role = self.inventory_data[attach["ip_address"]].get("switchRole") - if role.lower() == "spine" or role.lower() == "super spine": + if role.lower() in ("spine", "super spine"): msg = f"VRFs cannot be attached to switch {attach['ip_address']} " msg += f"with role {role}" self.module.fail_json(msg=msg)