diff --git a/dns/py/params.py b/dns/py/params.py index 872931842e..2431b9795f 100644 --- a/dns/py/params.py +++ b/dns/py/params.py @@ -160,7 +160,7 @@ def is_relevant(self, attributes): def set(self, inputs, value): if value > 0: cf = inputs.configmap_yaml['data']['Corefile'] - cfList = cf.decode().split("\n") + cfList = cf.split("\n") cfList.insert(1, " cache {\n" " success " + repr(value) + "\n" diff --git a/dns/py/runner.py b/dns/py/runner.py index ffdefb70cc..06878d4d86 100644 --- a/dns/py/runner.py +++ b/dns/py/runner.py @@ -124,7 +124,7 @@ def go(self): self._create(inputs.deployment_yaml) self._create(self.service_yaml) if self.configmap_yaml is not None: - self._create(self.configmap_yaml) + self._create(inputs.configmap_yaml) self._wait_for_status(True) test_threads=[] #Spawn off a thread to run the test case in each client pod simultaneously.