Commit 2154f50
authored
Fix distroVersion if unknown version in VMWARE
File "/opt/netbox-sync/module/sources/vmware/connection.py", line 2200, in add_virtual_machine
detailed_data_dict.get("distroVersion") not in platform:
TypeError: 'in <string>' requires string as left operand, not NoneType
Fixes this error, this seemed to be when a OS version is not known in VMWare.1 parent 9870c44 commit 2154f50
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2196 | 2196 | | |
2197 | 2197 | | |
2198 | 2198 | | |
2199 | | - | |
2200 | | - | |
2201 | | - | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
2202 | 2207 | | |
2203 | 2208 | | |
2204 | 2209 | | |
| |||
0 commit comments