Fix PagerDuty hook traceback with Python < 3.10 (#886).
This commit is contained in:
parent
c41000a4b1
commit
f5a1dd31c8
3 changed files with 5 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -1,3 +1,6 @@
|
||||||
|
1.8.13.dev0
|
||||||
|
* #886: Fix PagerDuty hook traceback with Python < 3.10.
|
||||||
|
|
||||||
1.8.12
|
1.8.12
|
||||||
* #817: Add a "--max-duration" flag to the "check" action and a "max_duration" option to the
|
* #817: Add a "--max-duration" flag to the "check" action and a "max_duration" option to the
|
||||||
repository check configuration. This tells Borg to interrupt a repository check after a certain
|
repository check configuration. This tells Borg to interrupt a repository check after a certain
|
||||||
|
|
|
@ -40,7 +40,7 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev
|
||||||
return
|
return
|
||||||
|
|
||||||
hostname = platform.node()
|
hostname = platform.node()
|
||||||
local_timestamp = datetime.datetime.now(datetime.UTC).astimezone().isoformat()
|
local_timestamp = datetime.datetime.now(datetime.timezone.utc).astimezone().isoformat()
|
||||||
payload = json.dumps(
|
payload = json.dumps(
|
||||||
{
|
{
|
||||||
'routing_key': hook_config['integration_key'],
|
'routing_key': hook_config['integration_key'],
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1,6 +1,6 @@
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
VERSION = '1.8.12'
|
VERSION = '1.8.13.dev0'
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|
Loading…
Reference in a new issue