Skip to content

Commit 94b1b05

Browse files
committed
fix linting for hubble_status object
1 parent 26092f8 commit 94b1b05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hubblestack/daemon.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import hubblestack.saltoverrides
4242

4343
log = logging.getLogger(__name__)
44-
hubble_status = hubblestack.status.HubbleStatus(__name__, 'schedule', 'refresh_grains')
44+
HSS = hubblestack.status.HubbleStatus(__name__, 'schedule', 'refresh_grains')
4545

4646
# Importing syslog fails on windows
4747
if not salt.utils.platform.is_windows():
@@ -237,7 +237,7 @@ def getlastrunbybuckets(buckets, seconds):
237237
return last_run
238238

239239

240-
@hubble_status.watch
240+
@HSS.watch
241241
def schedule():
242242
"""
243243
Rudimentary single-pass scheduler
@@ -718,7 +718,7 @@ def _setup_dirs():
718718
# tag='hubble:rg' will appear in the logs to differentiate this from other
719719
# hangtime_wrapper timers (if any)
720720
@hangtime_wrapper(timeout=600, repeats=True, tag='hubble:rg')
721-
@hubble_status.watch
721+
@HSS.watch
722722
def refresh_grains(initial=False):
723723
"""
724724
Refresh the grains, pillar, utils, modules, and returners
@@ -793,7 +793,7 @@ def refresh_grains(initial=False):
793793

794794
hubblestack.status.__opts__ = __opts__
795795
hubblestack.status.__salt__ = __salt__
796-
hubble_status.start_sigusr1_signal_handler()
796+
HSS.start_sigusr1_signal_handler()
797797

798798
hubblestack.utils.signing.__opts__ = __opts__
799799
hubblestack.utils.signing.__salt__ = __salt__

0 commit comments

Comments
 (0)