Remove default None value for get method
Change-Id: I718d4958de42fa96c40fbb5f153f8a975126b94d
This commit is contained in:
parent
08892c27f2
commit
34886a2722
@ -99,8 +99,8 @@ def _generate_driver_device(fpga):
|
||||
driver_device_obj = driver_device.DriverDevice()
|
||||
driver_device_obj.vendor = fpga["vendor_id"]
|
||||
driver_device_obj.model = fpga.get('model', 'miss model info')
|
||||
std_board_info = {'product_id': fpga.get('product_id', None),
|
||||
'controller': fpga.get('controller', None)}
|
||||
std_board_info = {'product_id': fpga.get('product_id'),
|
||||
'controller': fpga.get('controller')}
|
||||
vendor_board_info = {
|
||||
'vendor_info': fpga.get('vendor_info', 'fpga_vb_info')}
|
||||
driver_device_obj.std_board_info = jsonutils.dumps(std_board_info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user