#NEWLINE# def find( self , **kwargs ) : #NEWLINE# #INDENT# if ( 'assembly_id' in kwargs ) : #NEWLINE# #INDENT# return super ( AssemblyManager , self ) . get ( base_url = '/v1' , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'name_or_id' in kwargs ) : #NEWLINE# #INDENT# name_or_uuid = kwargs [ 'name_or_id' ] #NEWLINE# try : #NEWLINE# #INDENT# if uuidutils . is_uuid_like ( name_or_uuid ) : #NEWLINE# #INDENT# return super ( AssemblyManager , self ) . get ( base_url = '/v1' , assembly_id = self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return super ( AssemblyManager , self ) . findone ( name = name_or_uuid ) #NEWLINE# #UNINDENT# #UNINDENT# except exceptions . NoUniqueMatch : #NEWLINE# #INDENT# raise exc . NotUnique ( resource = 'Assembly' )