mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix mine lint errors
This commit is contained in:
parent
7b850ff3d0
commit
5c623c1e93
@ -64,6 +64,7 @@ def update(clear=False):
|
||||
log.error('Function {0} in mine_functions failed to execute'
|
||||
.format(func))
|
||||
continue
|
||||
auth = _auth()
|
||||
load = {
|
||||
'cmd': '_mine',
|
||||
'data': data,
|
||||
@ -72,7 +73,6 @@ def update(clear=False):
|
||||
'tok': auth.gen_token('salt'),
|
||||
}
|
||||
sreq = salt.payload.SREQ(__opts__['master_uri'])
|
||||
auth = _auth()
|
||||
try:
|
||||
sreq.send('aes', auth.crypticle.dumps(load), 1, 0)
|
||||
except Exception:
|
||||
@ -111,6 +111,7 @@ def send(func, *args, **kwargs):
|
||||
log.error('Function {0} in mine.send failed to execute: {1}'
|
||||
.format(func, exc))
|
||||
return False
|
||||
auth = _auth()
|
||||
load = {
|
||||
'cmd': '_mine',
|
||||
'data': data,
|
||||
@ -118,7 +119,6 @@ def send(func, *args, **kwargs):
|
||||
'tok': auth.gen_token('salt'),
|
||||
}
|
||||
sreq = salt.payload.SREQ(__opts__['master_uri'])
|
||||
auth = _auth()
|
||||
try:
|
||||
sreq.send('aes', auth.crypticle.dumps(load), 1, 10)
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user