소스 검색

better logic for priority

Tony Fernandez 7 달 전
부모
커밋
290559116d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      borgmatic/hooks/pushover.py

+ 1 - 1
borgmatic/hooks/pushover.py

@@ -39,7 +39,7 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
 
     logger.info(f'{config_filename}: Updating Pushover{dry_run_label}')
 
-    if 'priority' in state_config and state_config['priority'] == 2:
+    if state_config.get('priority') == 2:
         if 'expire' not in state_config:
             logger.info(f'{config_filename}: Setting expire to default (10min).')
             state_config['expire'] = 1200