Skip to content

Commit

Permalink
once more place to compare string not bool
Browse files Browse the repository at this point in the history
  • Loading branch information
FxKu committed Sep 16, 2024
1 parent 624f3f4 commit c04fd5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def get_placeholders(provider):
placeholders.setdefault('CLONE_TARGET_INCLUSIVE', True)

placeholders.setdefault('LOG_GROUP_BY_DATE', False)
placeholders.setdefault('LOG_SHIP_HOURLY', 'false')
placeholders.setdefault('LOG_SHIP_HOURLY', '')
placeholders.setdefault('LOG_SHIP_SCHEDULE', '1 0 * * *')
placeholders.setdefault('LOG_S3_BUCKET', '')
placeholders.setdefault('LOG_S3_ENDPOINT', '')
Expand Down
3 changes: 1 addition & 2 deletions postgres-appliance/scripts/upload_pg_log_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@


def get_file_names():
hourly_schedule = os.getenv('LOG_SHIP_HOURLY')
prev_interval = datetime.now() - timedelta(days=1)
prev_interval_number = prev_interval.strftime('%u')

if hourly_schedule:
if os.getenv('LOG_SHIP_HOURLY') == 'true':
prev_interval = datetime.now() - timedelta(hours=1)
prev_interval_number = prev_interval.strftime('%u-%H')

Expand Down

0 comments on commit c04fd5f

Please sign in to comment.