mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
make fd_ more standard
This commit is contained in:
parent
f00596a7c0
commit
5b1bde8a49
1 changed files with 2 additions and 2 deletions
|
@ -61,11 +61,11 @@ class Swarm(object):
|
|||
'''
|
||||
Create a config file for a single minion
|
||||
'''
|
||||
fd, path = tempfile.mkstemp()
|
||||
fd_, path = tempfile.mkstemp()
|
||||
path = '{0}{1}'.format(
|
||||
path,
|
||||
hashlib.md5(str(random.randint(0, 999999))).hexdigest())
|
||||
os.close(fd)
|
||||
os.close(fd_)
|
||||
dpath = '{0}.d'.format(path)
|
||||
os.makedirs(dpath)
|
||||
data = {'id': os.path.basename(path),
|
||||
|
|
Loading…
Add table
Reference in a new issue