Skip to content

Commit

Permalink
Fix parser for vault descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Nov 11, 2022
1 parent bd4ce91 commit 0c25fc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Genesis/Vault.pm
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,15 @@ sub parse_vault_descriptor {
$vault_info =~ s/ as ([^ ]*) / / and $alias = $1;
for my $clause (split(' ',$vault_info)) {
if ($clause =~ /^(no-)?strongbox$/) {
$strongbox = !$1;
$strongbox = $1 ? 0 : 1;
} elsif ($clause =~ /^(no-)?verify/) {
$verify = !$1;
$verify = $1 ? 0 : 1;
} elsif ($clause =~ /^(http(s)?:\/\/([^:]*)(?::([0-9]+))?)(?:\/(.*))?$/) {
$url = $1;
$tls = ($2||'' eq 's');
$domain = $4;
$port = $5;
$namespace = $6;
$domain = $3;
$port = $4;
$namespace = $5;
} else {
$ENV{GENESIS_TRACE}=1;
dump_stack();
Expand Down

0 comments on commit 0c25fc8

Please sign in to comment.