mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
process_beacons: read beacon configuration from per minion opts
The beacon manipulation functions, such as enable_beacons and
disable_beacons, use self.opts to enable/disable beacons. However,
process_beacons use __opts__ to retrieve the becon's configuration,
which is no longer the same, due to comit 5821b39
. Make process_beacon
read beacon configuration from self.opts instead.
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
parent
4c75d4f92b
commit
fce64d8ccf
@ -395,7 +395,7 @@ class MinionBase(object):
|
|||||||
the pillar or grains changed
|
the pillar or grains changed
|
||||||
'''
|
'''
|
||||||
if 'config.merge' in functions:
|
if 'config.merge' in functions:
|
||||||
b_conf = functions['config.merge']('beacons')
|
b_conf = functions['config.merge']('beacons', self.opts['beacons'], omit_opts=True)
|
||||||
if b_conf:
|
if b_conf:
|
||||||
return self.beacons.process(b_conf) # pylint: disable=no-member
|
return self.beacons.process(b_conf) # pylint: disable=no-member
|
||||||
return []
|
return []
|
||||||
|
Loading…
Reference in New Issue
Block a user