File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 55class GetKeys (object ):
66 plg_type = 'all'
77
8- def txt (self , type , plugins = None ):
8+ def txt (self , plg_type , plugins = None ):
99 # sort plugins!
1010 if plugins is None :
1111 plugins = []
12- self .plg_type = type
12+ self .plg_type = plg_type
1313 plugins .sort (key = lambda x : x .__class__ .__name__ )
1414 # create template
1515 template_data = self ._get_all ('keys_and_queries' , plugins ) # get data from all plugins
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ def __init__(self):
1515 def _hash (self , key , host = None ):
1616 return '{0}_+_{1}' .format (host , key )
1717
18- def _key_from_hash (self , hash , host = None ):
19- result = hash .split ('{0}_+_' .format (host ))
18+ def _key_from_hash (self , hash_string , host = None ):
19+ result = hash_string .split ('{0}_+_' .format (host ))
2020 if len (result ) == 1 :
21- return hash
21+ return hash_string
2222 else :
2323 return result [1 ]
2424
Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ def turn_agent_type(self, xml):
117117 xml = re .sub (r"<type>2" , "<type>0" , xml )
118118 return xml
119119
120- def xml (self , type , plugins = None ):
120+ def xml (self , plg_type , plugins = None ):
121121 # sort plugins!
122122 if plugins is None :
123123 plugins = []
124124 plugins .sort (key = lambda x : x .__class__ .__name__ )
125- self .plg_type = type
125+ self .plg_type = plg_type
126126 # create template
127127 template_data = {'template' : self .Template , 'application' : self .Application }
128128 if Plugin .Type == 'agent' :
You can’t perform that action at this time.
0 commit comments