Skip to content

Commit

Permalink
related bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atheurer committed Nov 22, 2024
1 parent 89d4740 commit d6ae637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rickshaw-index
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ sub index_metrics {

my $dir = pushd($metr_dir);
my %eng_env_vars;
if ($cdm{'ver'} eq 'v7dev') {
if ($cdm{'ver'} eq 'v7dev' or $cdm{'ver'} eq 'v8dev') {
# engine-type and engine-id replace cstype and csid, but cstype/id to be removed later
$eng_env_vars{'engine-type'} = $cstype;
$eng_env_vars{'engine-id'} = $csid;
Expand Down Expand Up @@ -912,15 +912,15 @@ if (exists $result{'run-id'} and defined $result{'run-id'}) {

add_persistent_uuid(\%result, "run", \$update_run_json);

printf "run-uuid: %s\n", $result{$run_id_field};
printf "%s: %s\n", $run_id_field, $result{$run_id_field};

my $host = `hostname`;
chomp $host;
$result{'source'} = $host . "/" . $base_run_dir;
printf "Run ID: %s\n", $result{'id'};
printf "Run ID: %s\n", $result{$run_id_field};

if (indexed_doc_count("run") > 0) {
printf "Run ID %s already exists, so will not POST to OpenSearch\n", $result{'id'};
printf "Run ID %s already exists, so will not POST to OpenSearch\n", $result{$run_id_field};
print "Either delete existing run from OpenSearch or regenerate rickshaw-result.json\n";
exit 1;
}
Expand Down

0 comments on commit d6ae637

Please sign in to comment.