mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix #1821
This commit is contained in:
parent
ff83cdb05d
commit
16c76acdd2
@ -593,8 +593,7 @@ class AESFuncs(object):
|
||||
# The old ext_nodes method is set to be deprecated in 0.10.4
|
||||
# and should be removed within 3-5 releases in favor of the
|
||||
# "master_tops" system
|
||||
if not self.opts['external_nodes']:
|
||||
return {}
|
||||
if self.opts['external_nodes']:
|
||||
if not salt.utils.which(self.opts['external_nodes']):
|
||||
log.error(('Specified external nodes controller {0} is not'
|
||||
' available, please verify that it is installed'
|
||||
@ -625,11 +624,11 @@ class AESFuncs(object):
|
||||
grains = {}
|
||||
if 'opts' in load:
|
||||
opts = load['opts']
|
||||
if grains in load['opts']:
|
||||
if 'grains' in load['opts']:
|
||||
grains = load['opts']['grains']
|
||||
for fun in self.tops:
|
||||
try:
|
||||
ret.update(self.tops[fun](opts, grains))
|
||||
ret.update(self.tops[fun](opts=opts, grains=grains))
|
||||
except Exception as exc:
|
||||
log.error(
|
||||
('Top function {0} failed with error {1} for minion '
|
||||
|
Loading…
Reference in New Issue
Block a user