Skip to content

Commit

Permalink
ensure LOG_SHIP_HOURLY env var remains a string
Browse files Browse the repository at this point in the history
  • Loading branch information
FxKu committed Oct 9, 2024
1 parent efd6eb4 commit a63ea8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def get_placeholders(provider):

# only accept true as value or else it will be empty = disabled
if placeholders['LOG_SHIP_HOURLY']:
placeholders['LOG_SHIP_HOURLY'] = os.environ.get('LOG_SHIP_HOURLY', '') in ['true', 'TRUE']
placeholders['LOG_SHIP_HOURLY'] = str(os.environ.get('LOG_SHIP_HOURLY', '') in ['true', 'TRUE'])

# see comment for wal-e bucket prefix
placeholders.setdefault('LOG_BUCKET_SCOPE_PREFIX', '{0}-'.format(placeholders['NAMESPACE'])
Expand Down

0 comments on commit a63ea8d

Please sign in to comment.