1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

nictagadm: don't call is_valid_mac when etherstub is true

This commit is contained in:
Adam D 2026-03-13 14:11:47 -07:00
parent 3194ed9d36
commit 656371e676

View file

@ -193,7 +193,7 @@ def main():
state=nictag.state,
)
if not nictag.is_valid_mac():
if not nictag.etherstub and not nictag.is_valid_mac():
module.fail_json(msg="Invalid MAC Address Value", name=nictag.name, mac=nictag.mac, etherstub=nictag.etherstub)
if nictag.state == "absent":