From 3eb655a600ee9364d57a367c5eab022c67983eab Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 16 Dec 2019 18:28:51 +0100 Subject: [PATCH] Fixing generation of conf-resolver options --- lib/cr_tf/handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 45565bf..273efaa 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.4.1' +__version__ = '3.4.2' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2617,10 +2617,8 @@ class CreateTerraformHandler(BaseHandler): commands.append("chmod +x /tmp/conf-resolver") cmd = '/tmp/conf-resolver' - if self.verbose: - cmd += ' --verbose' for ns in vm.nameservers: - cmd += ' --ns {!r}'.format(ns) + cmd += ' --ns {!r}'.format(str(ns)) for dom in vm.searchdomains: cmd += ' --search {!r}'.format(dom) if vm.dns_options: -- 2.39.5