Follow up patch for da9c3b0adc

This patch is a follow up patch fixing some nits left by the review
da9c3b0adc, this patch adds the
wwn_with_extension and wwn_vendor_extension root device hints to the
"serializable_fields" list attribute of the BlockDevice class and fixes
some tests.

Change-Id: I6039be535988319276f9ac355c80997d34328ce8
This commit is contained in:
Lucas Alvares Gomes
2015-11-18 09:53:54 +00:00
parent 4bd9fa042e
commit c21409e98b
3 changed files with 14 additions and 1 deletions

@ -138,7 +138,8 @@ class HardwareType(object):
class BlockDevice(encoding.SerializableComparable):
serializable_fields = ('name', 'model', 'size', 'rotational',
'wwn', 'serial', 'vendor')
'wwn', 'serial', 'vendor', 'wwn_with_extension',
'wwn_vendor_extension')
def __init__(self, name, model, size, rotational, wwn=None, serial=None,
vendor=None, wwn_with_extension=None,