utils/thor/templates/_method_setup.erb in elasticsearch-api-8.0.1 vs utils/thor/templates/_method_setup.erb in elasticsearch-api-8.1.0
- old
+ new
@@ -14,9 +14,10 @@
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
%>
+<%= ' '*(@namespace_depth+4) %>arguments = arguments.clone
<%- if @method_name == 'search' -%>
arguments[:index] = UNDERSCORE_ALL if ! arguments[:index] && arguments[:type]
<%- end -%>
<%- @parts.each do |name, _| %>
<%- unless @method_name == 'get_field_mapping' && name == 'fields' %>