From fcea9076d84fd4ab44481fb51c539e203fc35bac Mon Sep 17 00:00:00 2001 From: David Barroso Date: Tue, 1 Nov 2016 20:20:59 +0100 Subject: [PATCH] We have to return unicode, not strings --- napalm_fortios/fortios.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/napalm_fortios/fortios.py b/napalm_fortios/fortios.py index 3a5c919..e0a2fcc 100644 --- a/napalm_fortios/fortios.py +++ b/napalm_fortios/fortios.py @@ -149,16 +149,16 @@ class FortiOSDriver(NetworkDriver): text_result = '\n'.join(result) return { - 'startup': "", - 'running': text_result, - 'candidate': "", + 'startup': u"", + 'running': unicode(text_result), + 'candidate': u"", } elif get_startup or get_candidate: return { - 'startup': "", - 'running': "", - 'candidate': "", + 'startup': u"", + 'running': u"", + 'candidate': u"", } def get_facts(self):