mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #50274 from rallytime/bp-41472
Back-port #41472 to 2017.7
This commit is contained in:
commit
b947a18500
2 changed files with 3 additions and 2 deletions
|
@ -635,7 +635,7 @@ class AsyncAuth(object):
|
|||
'minion.\nOr restart the Salt Master in open mode to '
|
||||
'clean out the keys. The Salt Minion will now exit.'
|
||||
)
|
||||
sys.exit(salt.defaults.exitcodes.EX_OK)
|
||||
sys.exit(salt.defaults.exitcodes.EX_NOPERM)
|
||||
# has the master returned that its maxed out with minions?
|
||||
elif payload['load']['ret'] == 'full':
|
||||
raise tornado.gen.Return('full')
|
||||
|
@ -1186,7 +1186,7 @@ class SAuth(AsyncAuth):
|
|||
'minion.\nOr restart the Salt Master in open mode to '
|
||||
'clean out the keys. The Salt Minion will now exit.'
|
||||
)
|
||||
sys.exit(salt.defaults.exitcodes.EX_OK)
|
||||
sys.exit(salt.defaults.exitcodes.EX_NOPERM)
|
||||
# has the master returned that its maxed out with minions?
|
||||
elif payload['load']['ret'] == 'full':
|
||||
return 'full'
|
||||
|
|
|
@ -32,6 +32,7 @@ EX_UNAVAILABLE = 69 # service unavailable
|
|||
EX_SOFTWARE = 70 # internal software error
|
||||
EX_CANTCREAT = 73 # can't create (user) output file
|
||||
EX_TEMPFAIL = 75 # temp failure; user is invited to retry
|
||||
EX_NOPERM = 77 # permission denied
|
||||
|
||||
# The Salt specific exit codes are defined below:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue