diff --git a/app/assets/javascripts/host_edit_interfaces.js b/app/assets/javascripts/host_edit_interfaces.js index e8bbb5e3840..75cc3f5a4f2 100644 --- a/app/assets/javascripts/host_edit_interfaces.js +++ b/app/assets/javascripts/host_edit_interfaces.js @@ -413,9 +413,9 @@ $(document).on('change', '.interface_mac', function(event) { .find('.interface_mac') .attr('id') ) { - var interface = $('#interfaceModal').find('.interface_mac'); - var mac = interface.val(); - var baseurl = interface.attr('data-url'); + var host_interface = $('#interfaceModal').find('.interface_mac'); + var mac = host_interface.val(); + var baseurl = host_interface.attr('data-url'); $.ajax({ type: 'GET', url: baseurl + '?mac=' + mac,