mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing lint issues
This commit is contained in:
parent
446457d017
commit
b8ead879ed
1 changed files with 2 additions and 0 deletions
|
@ -146,12 +146,14 @@ def _gen_tag(low):
|
|||
'''
|
||||
return '{0[state]}_|-{0[__id__]}_|-{0[name]}_|-{0[fun]}'.format(low)
|
||||
|
||||
|
||||
def _clean_tag(tag):
|
||||
'''
|
||||
urllib safe quote the tag value to avoid invalid chars in the filename
|
||||
'''
|
||||
return urllib.quote(tag.encode('utf8'), safe='')
|
||||
|
||||
|
||||
def _l_tag(name, id_):
|
||||
low = {'name': 'listen_{0}'.format(name),
|
||||
'__id__': 'listen_{0}'.format(id_),
|
||||
|
|
Loading…
Add table
Reference in a new issue