Minor bug fixes, removed debug print and restored cronitor description in schema
Signed-off-by: jetchirag <thechiragaggarwal@gmail.com>
This commit is contained in:
parent
e87ebab625
commit
c3cc5cc95c
|
@ -66,7 +66,7 @@ def run_configuration(config_filename, config, arguments):
|
|||
error_repository = ''
|
||||
using_primary_action = {'create', 'prune', 'compact', 'check'}.intersection(arguments)
|
||||
monitoring_log_level = verbosity_to_log_level(global_arguments.monitoring_verbosity)
|
||||
action_name = list(arguments.keys())[0]
|
||||
action_name = next(iter(arguments))
|
||||
|
||||
try:
|
||||
local_borg_version = borg_version.local_borg_version(storage, local_path)
|
||||
|
|
|
@ -1259,6 +1259,11 @@ properties:
|
|||
If this is set, other properties will be ignored
|
||||
and replaced by this value.
|
||||
example: https://cronitor.link/d3x0c1
|
||||
description: |
|
||||
Configuration for a monitoring integration with Cronitor.
|
||||
Create an account at https://cronitor.io if you'd
|
||||
like to use this service. See borgmatic monitoring
|
||||
documentation for details.
|
||||
pagerduty:
|
||||
type: object
|
||||
required: ['integration_key']
|
||||
|
|
|
@ -37,7 +37,6 @@ def ping_monitor(hook_config, config_filename, state, monitoring_log_level, dry_
|
|||
try:
|
||||
ping_url = '{}/{}'.format(hook_config[action_name], MONITOR_STATE_TO_CRONITOR[state])
|
||||
except KeyError:
|
||||
print('KeyError')
|
||||
return
|
||||
|
||||
logger.info(
|
||||
|
|
Loading…
Reference in New Issue