зеркало из https://github.com/mozilla/scanapi.git
operating-system may not be present in results
This commit is contained in:
Родитель
d0c0758e1d
Коммит
b6d361d18b
|
@ -81,7 +81,7 @@ class ScanAPIParser(object):
|
|||
if thishostinfo != None:
|
||||
s['ipaddress'] = thishostinfo['host-ip']
|
||||
|
||||
if thishostinfo != None:
|
||||
if thishostinfo != None and 'operating-system' in thishostinfo:
|
||||
s['os'] = thishostinfo['operating-system']
|
||||
|
||||
# attempt to extract kernel hostname
|
||||
|
|
Загрузка…
Ссылка в новой задаче