mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Pylint fixes
This commit is contained in:
parent
d2ca043327
commit
43bd955096
@ -167,7 +167,6 @@ def gen_signature(priv_path, pub_path, sign_path):
|
||||
return True
|
||||
|
||||
|
||||
|
||||
class MasterKeys(dict):
|
||||
'''
|
||||
The Master Keys class is used to manage the public key pair used for
|
||||
|
@ -13,7 +13,6 @@ import fnmatch
|
||||
import hashlib
|
||||
import msgpack
|
||||
import json
|
||||
import binascii
|
||||
|
||||
# Import salt libs
|
||||
import salt.crypt
|
||||
@ -315,7 +314,6 @@ class KeyCLI(object):
|
||||
if os.path.isfile(mpriv):
|
||||
self.privkey = mpriv
|
||||
|
||||
|
||||
if not self.privkey:
|
||||
if self.opts['auto_create']:
|
||||
print('Generating new signing key-pair {0}.* in {1}'
|
||||
@ -351,7 +349,6 @@ class KeyCLI(object):
|
||||
self.pubkey,
|
||||
sign_path)
|
||||
|
||||
|
||||
def run(self):
|
||||
'''
|
||||
Run the logic for saltkey
|
||||
@ -436,7 +433,6 @@ class Key(object):
|
||||
pubkey,
|
||||
sig_path)
|
||||
|
||||
|
||||
def check_minion_cache(self):
|
||||
'''
|
||||
Check the minion cache to make sure that old minion data is cleared
|
||||
|
@ -82,7 +82,7 @@ class RAETChannel(Channel):
|
||||
stack.addRemote(RemoteYard(stack=stack,
|
||||
name='manor',
|
||||
lanename=mid,
|
||||
dirpath=self.opts['sock_dir'] ))
|
||||
dirpath=self.opts['sock_dir']))
|
||||
log.debug("Created Channel Jobber Stack {0}\n".format(stack.name))
|
||||
return stack
|
||||
|
||||
|
@ -1949,7 +1949,6 @@ class SaltKeyOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
|
||||
'; default=%default')
|
||||
)
|
||||
|
||||
|
||||
key_options_group.add_option(
|
||||
'--gen-signature',
|
||||
default=False,
|
||||
|
Loading…
Reference in New Issue
Block a user