Skip to content

Commit

Permalink
Move has_vix_disk_lib into vmware plugin as a seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy authored and aufi committed Jan 29, 2020
1 parent 03a284f commit f768ffb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions app/models/miq_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ def self.start
].each { |k| server_hash[k] = nil }
end

server_hash[:has_vix_disk_lib] = server.is_vix_disk_supported?

server.update(server_hash)

_log.info("Server IP Address: #{server.ipaddress}") unless server.ipaddress.blank?
Expand Down
15 changes: 0 additions & 15 deletions app/models/miq_server/server_smart_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,6 @@ def forceVmScan
true
end

# TODO: This should be moved - where?
def is_vix_disk_supported?
# This is only available on Linux
return false unless Sys::Platform::IMPL == :linux

begin
require 'VMwareWebService/VixDiskLib/VixDiskLib'
return true
rescue Exception
# It is ok if we hit an error, it just means the library is not available to load.
end

false
end

def concurrent_job_max
return 0 unless self.is_a_proxy?

Expand Down

0 comments on commit f768ffb

Please sign in to comment.