#NEWLINE# def process( self , obj , meta ) : #NEWLINE# #INDENT# banner = obj [ 'banner' ] #NEWLINE# if self . manufact_1_re . search ( self ) : #NEWLINE# #INDENT# meta . global_metadata . device_type = Type . NAS #NEWLINE# meta . global_metadata . manufacturer = Manufacturer . SEAGATE #NEWLINE# meta . global_metadata . product = 'Seagate Central' #NEWLINE# return meta #NEWLINE# #UNINDENT# if self . manufact_2_re . search ( banner ) : #NEWLINE# #INDENT# meta . global_metadata . device_type = Type . NAS #NEWLINE# meta . global_metadata . manufacturer = Manufacturer . SEAGATE #NEWLINE# product = self . product_re . search ( banner ) . group ( 1 ) #NEWLINE# meta . global_metadata . product = product #NEWLINE# return meta