You've already forked pgbackrest
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user