mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Remove sock_dir from crypt.dropfile()
This commit is contained in:
parent
e4556d74cb
commit
66f0932518
@ -40,7 +40,7 @@ from salt.exceptions import (
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def dropfile(cachedir, user=None, sock_dir=None):
|
||||
def dropfile(cachedir, user=None):
|
||||
'''
|
||||
Set an AES dropfile to request the master update the publish session key
|
||||
'''
|
||||
@ -61,9 +61,6 @@ def dropfile(cachedir, user=None, sock_dir=None):
|
||||
pass
|
||||
finally:
|
||||
os.umask(mask) # restore original umask
|
||||
if sock_dir:
|
||||
# TODO: deprecation warning
|
||||
pass
|
||||
|
||||
|
||||
def gen_keys(keydir, keyname, keysize, user=None):
|
||||
|
@ -752,7 +752,7 @@ class Key(object):
|
||||
pass
|
||||
self.check_minion_cache(preserve_minions=matches.get('minions', []))
|
||||
if self.opts.get('rotate_aes_key'):
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'], self.opts['sock_dir'])
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
|
||||
return (
|
||||
self.name_match(match) if match is not None
|
||||
else self.dict_match(matches)
|
||||
@ -774,7 +774,7 @@ class Key(object):
|
||||
pass
|
||||
self.check_minion_cache()
|
||||
if self.opts.get('rotate_aes_key'):
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'], self.opts['sock_dir'])
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
|
||||
return self.list_keys()
|
||||
|
||||
def reject(self, match=None, match_dict=None, include_accepted=False):
|
||||
@ -812,7 +812,7 @@ class Key(object):
|
||||
pass
|
||||
self.check_minion_cache()
|
||||
if self.opts.get('rotate_aes_key'):
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'], self.opts['sock_dir'])
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
|
||||
return (
|
||||
self.name_match(match) if match is not None
|
||||
else self.dict_match(matches)
|
||||
@ -843,7 +843,7 @@ class Key(object):
|
||||
pass
|
||||
self.check_minion_cache()
|
||||
if self.opts.get('rotate_aes_key'):
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'], self.opts['sock_dir'])
|
||||
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
|
||||
return self.list_keys()
|
||||
|
||||
def finger(self, match):
|
||||
|
Loading…
Reference in New Issue
Block a user