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:
1 parent
9814b272af
commit
d28d37ebdb
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user