mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
lint
This commit is contained in:
parent
c6ba7000dd
commit
b44db85b98
5 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Manage the Thorium complex event reaction system
|
||||
'''
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
The thorium system allows for advanced event tracking and reactions
|
||||
'''
|
||||
|
@ -9,6 +10,7 @@ The thorium system allows for advanced event tracking and reactions
|
|||
# Add dynamic recompile of thorium ruleset on given interval
|
||||
|
||||
# Import python libs
|
||||
from __future__ import absolute_import
|
||||
import time
|
||||
import logging
|
||||
import traceback
|
||||
|
@ -44,7 +46,6 @@ class ThorState(salt.state.HighState):
|
|||
except Exception:
|
||||
time.sleep(self.opts['thorium_interval'])
|
||||
|
||||
|
||||
def get_chunks(self, exclude=None, whitelist=None):
|
||||
'''
|
||||
Compile the top file and return the lowstate for the thorium runtime
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
The check Thorium state is used to create gateways to commands, the checks
|
||||
make it easy to make states that watch registers for changes and then just
|
||||
succeed or fail based on the state of the register, this creates the pattern
|
||||
of having a command execution get gated by a check state via a requisite.
|
||||
'''
|
||||
# import python libs
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
def gt(name, value):
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
A simple test module, writes matches to disk to verify activity
|
||||
Writes matches to disk to verify activity, helpful when testing
|
||||
'''
|
||||
|
||||
# Import python libs
|
||||
# import python libs
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import json
|
||||
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Used to manage the thorium register. The thorium register is where compound
|
||||
values are stored and computed, such as averages etc.
|
||||
'''
|
||||
|
||||
# import python libs
|
||||
from __future__ import division
|
||||
from __future__ import absolute_import, division
|
||||
import fnmatch
|
||||
|
||||
__func_alias__ = {
|
||||
'set_': 'set',
|
||||
}
|
||||
|
||||
|
||||
def set_(name, add, match):
|
||||
'''
|
||||
Add a value to the named set
|
||||
|
|
Loading…
Add table
Reference in a new issue