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 5
5
class GetKeys (object ):
6
6
plg_type = 'all'
7
7
8
- def txt (self , type , plugins = None ):
8
+ def txt (self , plg_type , plugins = None ):
9
9
# sort plugins!
10
10
if plugins is None :
11
11
plugins = []
12
- self .plg_type = type
12
+ self .plg_type = plg_type
13
13
plugins .sort (key = lambda x : x .__class__ .__name__ )
14
14
# create template
15
15
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):
15
15
def _hash (self , key , host = None ):
16
16
return '{0}_+_{1}' .format (host , key )
17
17
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 ))
20
20
if len (result ) == 1 :
21
- return hash
21
+ return hash_string
22
22
else :
23
23
return result [1 ]
24
24
Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ def turn_agent_type(self, xml):
117
117
xml = re .sub (r"<type>2" , "<type>0" , xml )
118
118
return xml
119
119
120
- def xml (self , type , plugins = None ):
120
+ def xml (self , plg_type , plugins = None ):
121
121
# sort plugins!
122
122
if plugins is None :
123
123
plugins = []
124
124
plugins .sort (key = lambda x : x .__class__ .__name__ )
125
- self .plg_type = type
125
+ self .plg_type = plg_type
126
126
# create template
127
127
template_data = {'template' : self .Template , 'application' : self .Application }
128
128
if Plugin .Type == 'agent' :
You can’t perform that action at this time.
0 commit comments