#NEWLINE# def find_masking_view( self , masking ) : #NEWLINE# #INDENT# volume_instance = masking [ 'volumeInstance' ] #NEWLINE# masking_views = self . connection . EnumerateInstanceNames ( 'EMC_LunMaskingSCSIProtocolController' ) #NEWLINE# storage_name = volume_instance [ 'SystemName' ] #NEWLINE# for masking_view_path in masking_views : #NEWLINE# #INDENT# if ( storage_name == masking_view_path [ 'SystemName' ] ) : #NEWLINE# #INDENT# instance = self . connection . GetInstance ( masking_view_path , LocalOnly = False ) #NEWLINE# if ( masking [ 'maskingViewName' ] == instance [ 'ElementName' ] ) : #NEWLINE# #INDENT# return masking_view_path