File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ sub run {
147147 my $self = shift ;
148148
149149 if ( $self -> await ) {
150+ $self -> delete_index if $self -> arg_delete_index;
150151 $self -> create_index if $self -> arg_create_index;
151152 $self -> update_index if $self -> arg_update_index;
152- $self -> delete_index if $self -> arg_delete_index;
153153 $self -> copy_type if $self -> copy_to_index;
154154 $self -> empty_type if $self -> delete_from_type;
155155 $self -> list_types if $self -> arg_list_types;
@@ -489,7 +489,7 @@ sub _build_aliases {
489489
490490sub deploy_mapping {
491491 my $self = shift ;
492- my $imappingok = 0;
492+ my $is_mapping_ok = 0;
493493
494494 $self -> are_you_sure(
495495 ' this will delete EVERYTHING and re-create the (empty) indexes' );
@@ -534,12 +534,12 @@ sub deploy_mapping {
534534 }
535535
536536 $self -> check_health(1);
537- $imappingok = $self -> mappings_valid( $rmappings , $raliases );
537+ $is_mapping_ok = $self -> mappings_valid( $rmappings , $raliases );
538538
539539 # done
540540 log_info {" Done." };
541541
542- return $imappingok ;
542+ return $is_mapping_ok ;
543543}
544544
545545sub aliases_valid {
You can’t perform that action at this time.
0 commit comments