We have to return unicode, not strings
This commit is contained in:
1 parent
7a724f9eb8
commit
fcea9076d8
1 file changed
+6
-6
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user