mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
[refactor] Code cleanup
This commit is contained in:
@@ -9,12 +9,13 @@ def status():
|
|||||||
def mysql_conn(retry):
|
def mysql_conn(retry):
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from MySQLdb import _mysql
|
from MySQLdb import _mysql
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
log.error(e)
|
log.error(e)
|
||||||
return False
|
return False
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
mainint = __salt__['pillar.get']('sensor:mainint', __salt__['pillar.get']('manager:mainint'))
|
mainint = __salt__['pillar.get']('sensor:mainint', __salt__['pillar.get']('manager:mainint'))
|
||||||
mainip = __salt__['grains.get']('ip_interfaces').get(mainint)[0]
|
mainip = __salt__['grains.get']('ip_interfaces').get(mainint)[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user