This commit is contained in:
David Barroso committed 2015-12-02 13:38:18 +01:00
1 parent 1d0bad011e
commit 68ab0bf250
1 file changed
+6 -6
+6 -6
View File
@@ -124,13 +124,13 @@ class FortiOSDriver(NetworkDriver):
domain = execute_get(self.device, 'get system dns | grep domain')['domain'] domain = execute_get(self.device, 'get system dns | grep domain')['domain']
return { return {
'vendor': 'Fortigate', 'vendor': unicode('Fortigate'),
'os_version': system_status['Version'].split(',')[0].split()[1], 'os_version': unicode(system_status['Version'].split(',')[0].split()[1]),
'uptime': convert_uptime_string_seconds(performance_status['Uptime']), 'uptime': convert_uptime_string_seconds(performance_status['Uptime']),
'serial_number': system_status['Serial-Number'], 'serial_number': unicode(system_status['Serial-Number']),
'model': system_status['Version'].split(',')[0].split()[0], 'model': unicode(system_status['Version'].split(',')[0].split()[0]),
'hostname': system_status['Hostname'], 'hostname': unicode(system_status['Hostname']),
'fqdn': '{}.{}'.format(system_status['Hostname'], domain), 'fqdn': u'{}.{}'.format(system_status['Hostname'], domain),
'interface_list': interface_list 'interface_list': interface_list
} }