mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Account for 15 character limit in hostname
This commit is contained in:
parent
aa278966de
commit
83f36cc2ef
1 changed files with 1 additions and 1 deletions
|
@ -154,6 +154,6 @@ def get_sam_name(username):
|
|||
i.e. salt.utils.fix_local_user('Administrator') would return 'computername\administrator'
|
||||
'''
|
||||
if '\\' not in username:
|
||||
username = '{0}\\{1}'.format(platform.node(), username)
|
||||
username = '{0}\\{1}'.format(platform.node()[:15], username)
|
||||
|
||||
return username.lower()
|
||||
|
|
Loading…
Add table
Reference in a new issue