Skip to content

Commit

Permalink
Update another conditional
Browse files Browse the repository at this point in the history
Modify another OR-conditional to use the preferred:

if X "in" (X, Y, Z):
  • Loading branch information
allenrobel committed Dec 6, 2024
1 parent 5b8c1c3 commit b401ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/dcnm_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b401ab8

Please sign in to comment.