def enabled(n, options = {})
      health = Diplomat::Health.new(@conn)
      result = health.node(n, options)
                     .select { |check| check['CheckID'] == '_node_maintenance' }

      if result.empty?
        { enabled: false, reason: nil }
      else
        { enabled: true, reason: result.first['Notes'] }
      end
    end
def enabled(n, options = {})
      health = Diplomat::Health.new(@conn)
      result = health.node(n, options)
                     .select { |check| check['CheckID'] == '_node_maintenance' }

      if result.empty?
        { enabled: false, reason: nil }
      else
        { enabled: true, reason: result.first['Notes'] }
      end
    end
Get the maintenance state of a host
 @param n [String] the node
 @param options [Hash] :dc string for dc specific query
 @return [Hash] { :enabled => true, :reason => 'foo' }