test_integration.host: Export the hostname to dict as string

Our tests do strict type-checking, using unicode string causes failures.

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
Petr Viktorin 2014-04-18 12:48:49 +02:00
parent 9814b272af
commit d28d37ebdb

View File

@ -142,7 +142,7 @@ class BaseHost(object):
def to_dict(self):
return {
'name': self.hostname,
'name': str(self.hostname),
'ip': self.ip,
'role': self.role,
'external_hostname': self.external_hostname,