Skip to content

Commit

Permalink
Changed string check in manage_bind module to look for basestring in …
Browse files Browse the repository at this point in the history
…order to work with unicode strings
  • Loading branch information
Michael Frisch committed Sep 23, 2016
1 parent e4c8033 commit 53dcf30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cobbler/modules/manage_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import clogger
import re
import time
from types import StringType

from cexceptions import CX
import templar
Expand Down Expand Up @@ -417,7 +416,7 @@ def __pretty_print_host_records(self, hosts, rectype='A', rclass='IN'):
my_name = "%s%s" % (name, spacing)
my_host_record = hosts[name]
my_host_list = []
if type(my_host_record) is StringType:
if isinstance(my_host_record, basestring):
my_host_list = [my_host_record]
else:
my_host_list = my_host_record
Expand Down

0 comments on commit 53dcf30

Please sign in to comment.