spacewalkproject/spacewalk — pull request #55 by morsik (2014-04-30 09:55:33+00:00)
Title: Default manufacturer as empty string.

We have self-assembled server that incorrectly reports SMBIOS values and it was unable to register it to Spacewalk because 'manufacturer' (line 72) was None instead of str().

Exact error:

```Python
Exception Handler Information
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 123, in call_function
response = apply(func, params)
File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 509, in new_system
architecture, data)
File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 368, in create_system
parse_smbios(data['smbios'])
File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 69, in parse_smbios
elif manufacturer.startswith('Red Hat') and product == 'OpenStack Nova' and uuid is not None:
AttributeError: 'NoneType' object has no attribute 'startswith'
```

dmidecode reports:

```
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: Empty
Product Name: Empty
Version: Empty
Serial Number: Empty
UUID: 00000000-0000-0000-0000-F0AB0C00C04D
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified
```