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 load_logical_enclosure
        @item['enclosureGroupUri'] = load_resource(:EnclosureGroup, @new_resource.enclosure_group, 'uri') if @new_resource.enclosure_group
        @item['enclosureUris'] ||= []
        return unless @new_resource.enclosures
        @new_resource.enclosures.each do |e|
          data = { name: e, serialNumber: e, activeOaPreferredIP: e, standbyOaPreferredIP: e }
          @item['enclosureUris'].push(load_resource(:Enclosure, data, 'uri'))
        end
      end
def load_logical_enclosure @item [ 'enclosureGroupUri' ] = load_resource ( :EnclosureGroup , @new_resource . enclosure_group , 'uri' ) if @new_resource . enclosure_group @item [ 'enclosureUris' ] ||= [ ] return unless @new_resource . enclosures @new_resource . enclosures . each do | e | data = { name : e , serialNumber : e , activeOaPreferredIP : e , standbyOaPreferredIP : e } @item [ 'enclosureUris' ] . push ( load_resource ( :Enclosure , data , 'uri' ) ) end end
Load the enclosure_group & enclosures properties
Load the enclosure_group & enclosures properties