passing non-interactive is a noop due to an off by one
passing non-interactive is a noop due to an off by one

(cherry picked from commit fd345f65801e8b0b4f9f18fcc7eb2f6a70bf0c40)

elastic/elasticsearch-net,elastic/elasticsearch-net