def _build_status(data, item):
 stream = item['stream']
 if ('Running in' in stream):
  data.setdefault('Intermediate_Containers', []).append(stream.rstrip().split()[(-1)])
 if ('Successfully built' in stream):
  data['Id'] = stream.rstrip().split()[(-1)]

def _build_status ( data , item ) : stream = item [ 'stream' ] if ( 'Running in' in stream ) : data . setdefault ( 'Intermediate_Containers' , [ ] ) . append ( stream . rstrip ( ) . split ( ) [ ( - 1 ) ] ) if ( 'Successfully built' in stream ) : data [ 'Id' ] = stream . rstrip ( ) . split ( ) [ ( - 1 ) ]
process a status update from a docker build .