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)
|
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):
|
||||||
|
|||||||
Reference in new issue
Block a user