anchor.diff:  <% if @collectd_options and ! @collectd_options.empty? -%>
   <% if @collectd_options.is_a?(Hash) -%>
   [collectd]
  -<% @collectd_options.each do |key, val| -%>
  -<% if val =~ /^(true|false|[0-9]+)$/ or val.is_a?(TrueClass) or val.is_a?(FalseClass) or val.is_a?(Fixnum) -%>
  +<% @collectd_options.keys.sort.each do |key| -%>
  +<% val = @collectd_options[key] 
  +  if val =~ /^(true|false|[0-9]+)$/ or val.is_a?(TrueClass) or val.is_a?(FalseClass) or val.is_a?(Fixnum) -%>
     <%=key %> = <%=val %>
   <% else -%>
     <%=key %> = "<%=val %>"
  
positive.code: <% if @opentsdb_options and ! @opentsdb_options.empty? -%>
  <% if @opentsdb_options.is_a?(Hash) -%>
  [opentsdb]
  <% @opentsdb_options.each do |key, val| -%>
  <% if val =~ /^(true|false|[0-9]+)$/ or val.is_a?(TrueClass) or val.is_a?(FalseClass) or val.is_a?(Fixnum) -%>
    <%=key %> = <%=val %>
  <% else -%>
  
negative.code: <% elsif @collectd_options.is_a?(Array) -%>
  <% @collectd_options.each do |option| -%>
  [collectd]
  <% option.keys.sort.each do |key| -%>
  <% val = @option[key] 
    if val =~ /^(true|false|[0-9]+)$/ or val.is_a?(TrueClass) or val.is_a?(FalseClass) or val.is_a?(Fixnum) -%>
    <%=key %> = <%=val %>
  <% else -%>
    <%=key %> = "<%=val %>"
  