We have to return unicode, not strings

This commit is contained in:
David Barroso committed 2016-11-01 20:20:59 +01:00
1 parent 7a724f9eb8
commit fcea9076d8
1 file changed
+6 -6
+6 -6
View File
@@ -149,16 +149,16 @@ class FortiOSDriver(NetworkDriver):
text_result = '\n'.join(result) text_result = '\n'.join(result)
return { return {
'startup': "", 'startup': u"",
'running': text_result, 'running': unicode(text_result),
'candidate': "", 'candidate': u"",
} }
elif get_startup or get_candidate: elif get_startup or get_candidate:
return { return {
'startup': "", 'startup': u"",
'running': "", 'running': u"",
'candidate': "", 'candidate': u"",
} }
def get_facts(self): def get_facts(self):