#NEWLINE# def _check_range_minions( self , expr , greedy ) : #NEWLINE# #INDENT# '\n        Return the minions found by looking via range expression\n        ' #NEWLINE# if ( not HAS_RANGE ) : #NEWLINE# #INDENT# raise CommandExecutionError ( 'Range matcher unavailable (unable to import seco.range, module most likely not installed)' ) #NEWLINE# #UNINDENT# if ( not hasattr ( self , '_range' ) ) : #NEWLINE# #INDENT# self . _range = seco . range . Range ( self . opts [ 'range_server' ] ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return self . _range . expand ( expr ) #NEWLINE# #UNINDENT# except seco . range . RangeException as exc : #NEWLINE# #INDENT# log . error ( 'Range exception in compound match: {0}' . format ( exc ) ) #NEWLINE# cache_enabled = self . opts . get ( 'minion_data_cache' , False ) #NEWLINE# if greedy : #NEWLINE# #INDENT# mlist = [ ] #NEWLINE# for fn_ in salt . utils . isorted ( os . listdir ( os . path . join ( self . opts [ 'pki_dir' ] , self . acc ) ) ) : #NEWLINE# #INDENT# if ( ( not fn_ . startswith ( '.' ) ) and os . path . isfile ( os . path . join ( self . opts [ 'pki_dir' ] , self . acc , fn_ ) ) ) : #NEWLINE# #INDENT# mlist . append ( fn_ ) #NEWLINE# #UNINDENT# #UNINDENT# return mlist #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if cache_enabled : #NEWLINE# #INDENT# return os . listdir ( os . path . join ( greedy . opts [ 'cachedir' ] , 'minions' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return list ( )