anchor.diff:  <% elsif @opentsdb_options.is_a?(Array) -%>
   <% @opentsdb_options.each do |option| -%>
   [opentsdb]
  -<% option.each do |key, val| -%>
  +<% 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 -%>
  
positive.code: <% elsif @collectd_options.is_a?(Array) -%>
  <% @collectd_options.each do |option| -%>
  [collectd]
  <% option.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 -%>
    <%=key %> = "<%=val %>"
  
negative.code: <% if @collectd_options and ! @collectd_options.empty? -%>
  <% if @collectd_options.is_a?(Hash) -%>
  [collectd]
  <% @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 %>"
  