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 committed 2014-04-22 12:55:35 +02:00
1 parent 9814b272af
commit d28d37ebdb
1 file changed
+1 -1
+1 -1
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,