From ebafbabf985adf3310572a3abbc0833e3a7b3b49 Mon Sep 17 00:00:00 2001 From: Yuri Rudman Date: Tue, 21 Mar 2017 18:24:02 -0400 Subject: [PATCH] fixed bug introduced by ManageIQ/manageiq#14356 Fixes #14442 --- app/models/vm_scan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/vm_scan.rb b/app/models/vm_scan.rb index 7648e8717a7..118b5302111 100644 --- a/app/models/vm_scan.rb +++ b/app/models/vm_scan.rb @@ -155,7 +155,7 @@ def call_scan _log.info "Enter" begin - MiqServer.find(agent_id) + host = MiqServer.find(agent_id) vm = VmOrTemplate.find(target_id) # Send down metadata to allow the host to make decisions. scan_args = create_scan_args(vm)