Skip to content

Commit

Permalink
Apply requested changes for PR#214
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Feb 1, 2023
1 parent 766b180 commit 3f3cc7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helpers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def get_template(cls):
'postgres_settings': False,
'postgres_settings_content': '\n'.join([
'# Generated by PGConfig 3.1.0 (1d600ea0d1d79f13dd7ed686f9e2befc1fcf9226)',
'# https://api.pgconfig.org/v1/tuning/get-config?format=conf&log_format=csvlog&max_connections=100&pg_version=14&environment_name=Mixed&total_ram=2GB&cpus=1&drive_type=SSD&arch=x86-64&os_type=linux',
'# https://api.pgconfig.org/v1/tuning/get-config?format=conf&include_pgbadger=false&max_connections=100&pg_version=14&environment_name=Mixed&total_ram=2GB&cpus=1&drive_type=SSD&os_type=linux',
'',
'# Memory Configuration',
'shared_buffers = 256MB',
Expand Down Expand Up @@ -1678,7 +1678,6 @@ def __questions_postgres(self):
)
response = Network.curl(endpoint)
if response:
configuration = re.sub(r'(log|lc_).+(\n|$)', '', response)
# Patch response because of https://github.com/pgconfig/api/issues/13
configuration = re.sub(r'(\d+)KB', "\1kB", configuration)
self.__dict['postgres_settings_content'] = configuration
Expand Down

0 comments on commit 3f3cc7a

Please sign in to comment.