libraries/resource_providers/api200/logical_enclosure_provider.rb
# Load the enclosure_group & enclosures properties
Load the enclosure_group & enclosures properties
Load the enclosure_group & enclosures properties
def reconfigure
        @item.retrieve! || raise("#{@resource_name} '#{@name}' not found!")
        @item['enclosureUris'].each do |enclosure_uri|
          enc_state = load_resource(:Enclosure, { uri: enclosure_uri }, 'reconfigurationState')
          next unless ['NotReapplyingConfiguration', 'ReapplyingConfigurationFailed', ''].include?(enc_state)
          Chef::Log.info "Reconfiguring #{@resource_name} '#{@name}'"
          @context.converge_by "#{@resource_name} '#{@name}' was reconfigured." do
            @item.reconfigure
          end
          return true
        end
        Chef::Log.info("#{@resource_name} '#{@name}' is currently being reconfigured")
      end
def reconfigure @item . retrieve! || raise ( "#{@resource_name} '#{@name}' not found!" ) @item [ 'enclosureUris' ] . each do | enclosure_uri | enc_state = load_resource ( :Enclosure , { uri : enclosure_uri } , 'reconfigurationState' ) next unless [ 'NotReapplyingConfiguration' , 'ReapplyingConfigurationFailed' , '' ] . include? ( enc_state ) Chef :: Log . info "Reconfiguring #{@resource_name} '#{@name}'" @context . converge_by "#{@resource_name} '#{@name}' was reconfigured." do @item . reconfigure end return true end Chef :: Log . info ( "#{@resource_name} '#{@name}' is currently being reconfigured" ) end
Load the enclosure_group & enclosures properties
Load the enclosure_group & enclosures properties