libraries/resource_providers/api500/c7000/server_profile_template_provider.rb
# Override create method to allow creation from a template
Override create method to allow creation from a template
Override create method to allow creation from a template
def create(method)
          if @new_resource.server_profile_name
            sp_as_template = load_resource(:ServerProfile, @new_resource.server_profile_name)
            Chef::Log.info "Using Server profile '#{@new_resource.server_profile_name}' as template to #{method} #{@resource_name} '#{@name}'"
            new_spt_data = sp_as_template.get_profile_template.data
            @item.data = new_spt_data.merge(@item.data)
          end
          super
        end
def create ( method ) if @new_resource . server_profile_name sp_as_template = load_resource ( :ServerProfile , @new_resource . server_profile_name ) Chef :: Log . info "Using Server profile '#{@new_resource.server_profile_name}' as template to #{method} #{@resource_name} '#{@name}'" new_spt_data = sp_as_template . get_profile_template . data @item . data = new_spt_data . merge ( @item . data ) end super end
Override create method to allow creation from a template
Override create method to allow creation from a template
method