From 34d4b4c80858ccfb0e03ed7fef7255bb96d691f3 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 17 Oct 2014 13:16:58 +0000 Subject: [PATCH] Fixes on domain backend --- orchestra/apps/domains/backends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/apps/domains/backends.py b/orchestra/apps/domains/backends.py index 1b542be1..fbdc62f4 100644 --- a/orchestra/apps/domains/backends.py +++ b/orchestra/apps/domains/backends.py @@ -49,8 +49,8 @@ class Bind9MasterDomainBackend(ServiceController): # These can never be top level domains return self.append(textwrap.dedent(""" - cat -s <(sed -e 's/^};/};\n/' named.conf.local) | \\ - awk -v s="%(name)s" 'BEGIN { RS=""; s="zone \""s"\"" } $0!~s{ print $0"\n" }' \\ + cat -s <(sed -e 's/^};/};\\n/' named.conf.local) | \\ + awk -v s="%(name)s" 'BEGIN { RS=""; s="zone \\""s"\\"" } $0!~s{ print $0"\\n" }' \\ > %(conf_path)s.tmp""" % context )) self.append('diff -I"^\s*//" %(conf_path)s.tmp %(conf_path)s || UPDATED=1' % context)