fixes #242, to unicode error under python2.7
This commit is contained in:
parent
450890b005
commit
ac127a2cc0
@ -153,7 +153,7 @@ class Command(BaseCommand):
|
|||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
for h in Host.objects.all():
|
for h in Host.objects.all():
|
||||||
if stale_check:
|
if stale_check:
|
||||||
host = h.name + "." + h.domain
|
host = h.name + "." + h.domain.name
|
||||||
comment = h.comment
|
comment = h.comment
|
||||||
creator = h.created_by
|
creator = h.created_by
|
||||||
staleness, email_msg, log_msg = check_staleness(h)
|
staleness, email_msg, log_msg = check_staleness(h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user