We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa88a63 commit d2bd702Copy full SHA for d2bd702
dns/py/params.py
@@ -160,11 +160,7 @@ def is_relevant(self, attributes):
160
def set(self, inputs, value):
161
if value > 0:
162
cf = inputs.configmap_yaml['data']['Corefile']
163
- # fix the cf type so that it works also for python3
164
- if(type(cf) == str):
165
- cfList = cf.split("\n")
166
- else:
167
- cfList = cf.decode().split("\n")
+ cfList = cf.split("\n")
168
cfList.insert(1,
169
" cache {\n"
170
" success " + repr(value) + "\n"
0 commit comments