From d28d37ebdb7f454451975efbd55bceb6c3533430 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 18 Apr 2014 12:48:49 +0200 Subject: 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 --- ipatests/test_integration/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipatests/test_integration') diff --git a/ipatests/test_integration/host.py b/ipatests/test_integration/host.py index 94440c187..7a3a6ac77 100644 --- a/ipatests/test_integration/host.py +++ b/ipatests/test_integration/host.py @@ -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, -- cgit