Method: HPE3PAR_API#initiator_chap_exists?
- Defined in:
- lib/puppet/util/hpe3par_api.rb
#initiator_chap_exists?(host_name, debug = false) ⇒ Boolean
928 929 930 931 932 933 934 935 936 937 |
# File 'lib/puppet/util/hpe3par_api.rb', line 928 def initiator_chap_exists?(host_name, debug = false) cl = Hpe3parSdk::Client.new(@rest_url, debug: debug) begin cl.login(@url.user, @url.password) initiator_chap_enabled = cl.get_host(host_name).initiator_chap_enabled return initiator_chap_enabled ensure cl.logout end end |