From d3132c0e8e5a6bcbde42f86eb5efe93bd67e86b9 Mon Sep 17 00:00:00 2001 From: Fabien Dupont Date: Thu, 4 Oct 2018 09:05:19 -0400 Subject: [PATCH 1/2] Add thumbprint_sha1 method to host_esx --- .../manageiq/providers/vmware/infra_manager/host_esx.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb b/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb index 64f79fbe3..a34541b21 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb @@ -177,4 +177,8 @@ def refresh_advanced_settings def self.display_name(number = 1) n_('Host (Vmware)', 'Hosts (Vmware)', number) end + + def thumbprint_sha1 + ESXThumbPrint.new(ipaddress, authentication_userid, authentication_password).to_sha1 + end end From 28737cfe54200d36c15ffbd38dc020f33b488187 Mon Sep 17 00:00:00 2001 From: Fabien Dupont Date: Thu, 4 Oct 2018 09:15:07 -0400 Subject: [PATCH 2/2] Forgot require --- app/models/manageiq/providers/vmware/infra_manager/host_esx.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb b/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb index a34541b21..675b3ce66 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/host_esx.rb @@ -179,6 +179,7 @@ def self.display_name(number = 1) end def thumbprint_sha1 + require 'VMwareWebService/esx_thumb_print' ESXThumbPrint.new(ipaddress, authentication_userid, authentication_password).to_sha1 end end