From db928044d1604f2488c27c172318896a82761b73 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 7 Dec 2021 15:59:32 +0100 Subject: [PATCH] Fixing class PpDeployZonesApp --- lib/pp_admintools/deploy_zones_from_pdns.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pp_admintools/deploy_zones_from_pdns.py b/lib/pp_admintools/deploy_zones_from_pdns.py index bbc5b7c..44e26c0 100644 --- a/lib/pp_admintools/deploy_zones_from_pdns.py +++ b/lib/pp_admintools/deploy_zones_from_pdns.py @@ -472,14 +472,12 @@ class PpDeployZonesApp(PpPDNSApplication): result = super(BaseApplication, self).run( cmd, stdout=PIPE, stderr=PIPE, timeout=10, check=True, may_simulate=False) -# result = self.run( -# cmd, stdout=PIPE, stderr=PIPE, timeout=10, check=True, may_simulate=False) if self.verbose > 1: LOG.debug(_("Result:") + '\n' + str(result)) config = result.stdout - key_pattern = r'^\s*key\s+("[^"]+"|\S+)\s+\{([^\}]+\}\s*;' + key_pattern = r'^\s*key\s+("[^"]+"|\S+)\s+\{([^\}]+)\}\s*;' re_quotes = re.compile(r'^\s*"([^"]+)"\s*$') re_key = re.compile(key_pattern, re.IGNORECASE | re.MULTILINE | re.DOTALL) -- 2.39.5