#NEWLINE# def local_keys( self ) : #NEWLINE# #INDENT# '\n        Return a dict of local keys\n        ' #NEWLINE# ret = { #NEWLINE# #INDENT# 'local' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# for fn_ in salt . utils . isorted ( os . listdir ( self . opts [ 'pki_dir' ] ) ) : #NEWLINE# #INDENT# if ( fn_ . endswith ( '.pub' ) or fn_ . endswith ( '.pem' ) ) : #NEWLINE# #INDENT# path = os . path . join ( self . opts [ 'pki_dir' ] , fn_ ) #NEWLINE# if os . path . isfile ( path ) : #NEWLINE# #INDENT# ret [ 'local' ] . append ( fn_ ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return fn_