mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
state.py: fix import and utf8 encode before quote
This commit is contained in:
parent
1dcf167bb7
commit
fb80e17400
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ import traceback
|
|||
import re
|
||||
import time
|
||||
import random
|
||||
from urllib import quote
|
||||
from urllib
|
||||
|
||||
# Import salt libs
|
||||
import salt.utils
|
||||
|
@ -150,7 +150,7 @@ def _clean_tag(tag):
|
|||
'''
|
||||
urllib safe quote the tag value to avoid invalid chars in the filename
|
||||
'''
|
||||
return quote(tag, safe='')
|
||||
return urllib.quote(tag.encode('utf8'), safe='')
|
||||
|
||||
def _l_tag(name, id_):
|
||||
low = {'name': 'listen_{0}'.format(name),
|
||||
|
|
Loading…
Add table
Reference in a new issue