1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-29 08:21:11 +03:00

Allow host memory limits in the user guide to be disabled.

These limits can cause errors in some environments, e.g. Docker in Docker on Mac M1.

Entirely remove limits from the build, s3, and azure hosts since memory usage on these hosts is out of our control and not useful for testing.

Also allow empty variables to be rendered as blank.
This commit is contained in:
David Steele
2022-08-24 08:45:44 -04:00
parent ff1188f92d
commit 37b4592e52
2 changed files with 13 additions and 7 deletions

View File

@ -370,7 +370,8 @@ sub variableReplace
foreach my $strName (sort(keys(%{$self->{oVariable}})))
{
my $strValue = $self->{oVariable}{$strName};
# If the value is not defined then replace it as an empty string. This means the key *was* defined but no value given.
my $strValue = defined($self->{oVariable}{$strName}) ? $self->{oVariable}{$strName} : '';
$strBuffer =~ s/\{\[$strName\]\}/$strValue/g;
}