mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #16661 from thatch45/fix_rand_thin
Fix rand_thin dir system, it was broken in the heredoc PR
This commit is contained in:
commit
03b2b4955c
@ -16,6 +16,7 @@ import os
|
||||
import re
|
||||
import time
|
||||
import yaml
|
||||
import uuid
|
||||
|
||||
# Import salt libs
|
||||
import salt.client.ssh.shell
|
||||
@ -492,6 +493,8 @@ class Single(object):
|
||||
self.thin_dir = DEFAULT_THIN_DIR.replace('%%USER%%', user)
|
||||
else:
|
||||
self.thin_dir = DEFAULT_THIN_DIR.replace('%%USER%%', 'root')
|
||||
if self.opts.get('rand_thin_dir'):
|
||||
self.thin_dir = os.path.join('/tmp', '.{0}'.format(uuid.uuid4().hex))
|
||||
self.opts['_thin_dir'] = self.thin_dir
|
||||
self.fsclient = fsclient
|
||||
self.context = {'master_opts': self.opts,
|
||||
|
Loading…
Reference in New Issue
Block a user