Method: HPE3PAR_API#get_host_set

Defined in:
lib/puppet/util/hpe3par_api.rb

#get_host_set(host_set, debug = false) ⇒ Object



663
664
665
666
667
668
669
670
671
672
673
# File 'lib/puppet/util/hpe3par_api.rb', line 663

def get_host_set(host_set, debug = false)
  cl = Hpe3parSdk::Client.new(@rest_url, debug: debug)
  begin
    cl.(@url.user, @url.password)
    cl.get_host_set(host_set)
  rescue Hpe3parSdk::HPE3PARException => ex
    raise ex
  ensure
    cl.logout
  end
end