Skip to content

Instantly share code, notes, and snippets.

Avatar

Tom Robijns trir262

View GitHub Profile
@trir262
trir262 / 01 Get-DynAppID.py
Last active Jul 14, 2021
Share results between snippets in a runbook
View 01 Get-DynAppID.py
from silo_common.database import local_db
from collections import namedtuple
#Anthing passed via the EM7_RESULT is in clear text visible to anyone. Better not send any confidential data through that channel!
app_id = 0
try:
dbc = local_db()
query = ("select app_id from master.dynamic_app_alerts where alert_id = {}".format(EM7_VALUES['%F']))
app_id = dbc.autofetch_value(query)