Skip to content

Commit ac73b7c

Browse files
committed
Fix logic for global vs. datastore
1 parent 571aaec commit ac73b7c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/VWF/Utils.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ sub _configure_shared_memory($chi_args, $config, $args) {
318318

319319
sub _configure_memory($chi_args, $config) {
320320
$chi_args->{'global'} = $config->{'global'} // 1;
321-
if($chi_args->{'global'}) {
321+
if(!$chi_args->{'global'}) {
322322
$chi_args->{'datastore'} = {};
323323
}
324324
}

tests/get_template_path

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use VWF::Display;
2020
sub trace { shift; ::diag "TRACE: @_\n" }
2121
sub info { shift; ::diag "INFO: @_\n" }
2222
sub debug { shift; ::diag "DEBUG: @_\n" }
23+
sub error { shift; ::diag "ERROR: @_\n" }
2324
# sub trace { }
2425
# sub info { }
2526
# sub debug { }

0 commit comments

Comments
 (0)