def pools_from_config
      configs = {}

      pools_config_contents.each do |section|
        # Hash section name and content
        d = Digest::SHA2.new(256)
        hash = d.reset.update(section[0]).update(section[1].to_s).to_s

        configs[hash] = {
          name: section[0],
          config: section[1]
        }
      end
      configs
    end
def pools_from_config
      configs = {}

      pools_config_contents.each do |section|
        # Hash section name and content
        d = Digest::SHA2.new(256)
        hash = d.reset.update(section[0]).update(section[1].to_s).to_s

        configs[hash] = {
          name: section[0],
          config: section[1]
        }
      end
      configs
    end
Hashes configs to detect changes