From 5fa4ac28932c56acf8ff6b62539279bc1921b385 Mon Sep 17 00:00:00 2001 From: sugaf1204 Date: Wed, 8 May 2024 03:57:58 +0900 Subject: [PATCH] add name_field_ansible --- plugins/modules/network_interface_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/network_interface_info.py b/plugins/modules/network_interface_info.py index 897923f..8d2a700 100644 --- a/plugins/modules/network_interface_info.py +++ b/plugins/modules/network_interface_info.py @@ -133,7 +133,7 @@ def run(module, client): - machine_obj = Machine.get_by_fqdn(module, client, must_exist=True) + machine_obj = Machine.get_by_fqdn(module, client, must_exist=True, name_field_ansible="machine") if module.params["mac_address"]: nic_obj = machine_obj.find_nic_by_mac(module.params["mac_address"]) if nic_obj: