File: key_algorithm.patch

package info (click to toggle)
dehydrated-hook-ddns-tsig 0.1.4-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 292 kB
  • sloc: python: 3,981; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?utf-8?q?IOhannes_m_zm=C3=B6lnig?= <umlaeute@debian.org>
Date: Thu, 25 Oct 2018 14:38:19 +0200
Subject: provide default values for key_* config

Forwarded: https://github.com/eferdman/dehydrated-hook-ddns-tsig/pull/27
Last-Update: 2018-09-24
---
 dehydrated-hook-ddns-tsig.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dehydrated-hook-ddns-tsig.py b/dehydrated-hook-ddns-tsig.py
index e72a994..0b49f23 100755
--- a/dehydrated-hook-ddns-tsig.py
+++ b/dehydrated-hook-ddns-tsig.py
@@ -511,6 +511,10 @@ def ensure_config_dns(cfg):
     # (int)ttl
     # (float)wait
 
+    key_name = None
+    key_secret = None
+    key_algorithm = None
+
     try:
         key_name = cfg["key_name"]
         key_secret = cfg["key_secret"]