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 {
147
147
my $self = shift ;
148
148
149
149
if ( $self -> await ) {
150
+ $self -> delete_index if $self -> arg_delete_index;
150
151
$self -> create_index if $self -> arg_create_index;
151
152
$self -> update_index if $self -> arg_update_index;
152
- $self -> delete_index if $self -> arg_delete_index;
153
153
$self -> copy_type if $self -> copy_to_index;
154
154
$self -> empty_type if $self -> delete_from_type;
155
155
$self -> list_types if $self -> arg_list_types;
@@ -489,7 +489,7 @@ sub _build_aliases {
489
489
490
490
sub deploy_mapping {
491
491
my $self = shift ;
492
- my $imappingok = 0;
492
+ my $is_mapping_ok = 0;
493
493
494
494
$self -> are_you_sure(
495
495
' this will delete EVERYTHING and re-create the (empty) indexes' );
@@ -534,12 +534,12 @@ sub deploy_mapping {
534
534
}
535
535
536
536
$self -> check_health(1);
537
- $imappingok = $self -> mappings_valid( $rmappings , $raliases );
537
+ $is_mapping_ok = $self -> mappings_valid( $rmappings , $raliases );
538
538
539
539
# done
540
540
log_info {" Done." };
541
541
542
- return $imappingok ;
542
+ return $is_mapping_ok ;
543
543
}
544
544
545
545
sub aliases_valid {
You can’t perform that action at this time.
0 commit comments