# This file was generated by Chef
# Do NOT modify this file by hand.

[<%= @config.repo_name %>]
<% %w{ type enabled autorefresh gpgcheck gpgkey baseurl mirrorlist path priority keeppackages mode refresh_cache }.each do |prop| -%>
<%  next if @config.send(prop.to_sym).nil? -%>
<%= prop %>=<%=
       case @config.send(prop.to_sym)
       when TrueClass
         '1'
       when FalseClass
         '0'
       else
         @config.send(prop.to_sym)
       end %>
<% end -%>
name=<%= @config.description || @config.repo_name %>

# This file was generated by Chef Infra
# Do NOT modify this file by hand.

[<%= @config.repo_name %>]
<% %w{ type enabled autorefresh gpgcheck gpgkey baseurl mirrorlist path priority keeppackages mode refresh_cache }.each do |prop| -%>
<%  next if @config.send(prop.to_sym).nil? || (@config.send(prop.to_sym).is_a?(Array) && @config.send(prop.to_sym).empty?) -%>
<%= prop %>=<%=
       case @config.send(prop.to_sym)
       when TrueClass
         '1'
       when FalseClass
         '0'
       when Array
         @config.send(prop.to_sym).join("\n       ")
       else
         @config.send(prop.to_sym)
       end %>
<% end -%>
name=<%= @config.description || @config.repo_name %>

Handle arrays in the zypper repo template
Handle arrays in the zypper repo template

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
