mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix leading dots on sanitized hostname
This commit is contained in:
parent
5ff5e97598
commit
046c5436eb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class InputSanitizer(object):
|
|||
:param value:
|
||||
:return:
|
||||
'''
|
||||
return re.sub(r'[^a-zA-Z0-9.-]', '', InputSanitizer.trim(value))
|
||||
return re.sub(r'[^a-zA-Z0-9.-]', '', InputSanitizer.trim(value)).strip('.')
|
||||
|
||||
id = hostname
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue