Fix some "borgmatic" capitalization issues.

This commit is contained in:
Dan Helfman 2023-07-26 23:38:08 -07:00
parent 8a2514915c
commit c11dcdef0a
4 changed files with 10 additions and 10 deletions

2
NEWS
View file

@ -1,5 +1,5 @@
1.8.1.dev0
* #728: Fix for "prune" action error when using the "keep_exclude_tags" option in configuration.
* #728: Fix for "prune" action error when using the "keep_exclude_tags" option.
* #730: Fix for Borg's interactive prompt on the "check --repair" action automatically getting
answered "NO" even when the "check_i_know_what_i_am_doing" option isn't set.

View file

@ -28,8 +28,8 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
state_config = hook_config.get(
state.name.lower(),
{
'title': f'A Borgmatic {state.name} event happened',
'message': f'A Borgmatic {state.name} event happened',
'title': f'A borgmatic {state.name} event happened',
'message': f'A borgmatic {state.name} event happened',
'priority': 'default',
'tags': 'borgmatic',
},

View file

@ -304,17 +304,17 @@ ntfy:
topic: my-unique-topic
server: https://ntfy.my-domain.com
start:
title: A Borgmatic backup started
title: A borgmatic backup started
message: Watch this space...
tags: borgmatic
priority: min
finish:
title: A Borgmatic backup completed successfully
title: A borgmatic backup completed successfully
message: Nice!
tags: borgmatic,+1
priority: min
fail:
title: A Borgmatic backup failed
title: A borgmatic backup failed
message: You should probably fix it
tags: borgmatic,-1,skull
priority: max

View file

@ -10,8 +10,8 @@ custom_base_url = 'https://ntfy.example.com'
topic = 'borgmatic-unit-testing'
custom_message_config = {
'title': 'Borgmatic unit testing',
'message': 'Borgmatic unit testing',
'title': 'borgmatic unit testing',
'message': 'borgmatic unit testing',
'priority': 'min',
'tags': '+1',
}
@ -26,8 +26,8 @@ custom_message_headers = {
def return_default_message_headers(state=Enum):
headers = {
'X-Title': f'A Borgmatic {state.name} event happened',
'X-Message': f'A Borgmatic {state.name} event happened',
'X-Title': f'A borgmatic {state.name} event happened',
'X-Message': f'A borgmatic {state.name} event happened',
'X-Priority': 'default',
'X-Tags': 'borgmatic',
}