mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #34935 from rallytime/beacons-mod-cleanup
Avoid UnboundLocalError in beacons module
This commit is contained in:
commit
deb1331601
1 changed files with 5 additions and 1 deletions
|
@ -9,13 +9,16 @@ Module for managing the Salt beacons on a minion
|
|||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
import difflib
|
||||
import logging
|
||||
import os
|
||||
import yaml
|
||||
|
||||
# Import Salt libs
|
||||
import salt.utils
|
||||
import salt.utils.event
|
||||
from salt.ext.six.moves import map
|
||||
|
||||
import logging
|
||||
# Get logging started
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
__func_alias__ = {
|
||||
|
@ -38,6 +41,7 @@ def list_(return_yaml=True):
|
|||
salt '*' beacons.list
|
||||
|
||||
'''
|
||||
beacons = None
|
||||
|
||||
try:
|
||||
eventer = salt.utils.event.get_event('minion', opts=__opts__)
|
||||
|
|
Loading…
Add table
Reference in a new issue