Page MenuHomeDevCentral

notifications.py
No OneTemporary

notifications.py

# -------------------------------------------------------------
# Salt — Node execution module
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Build Notifications center configuration
# License: BSD-2-Clause
# -------------------------------------------------------------
import copy
def get_credentials():
try:
services = __pillar__["notifications_credentials"]["services"]
except KeyError:
services = []
return {"services": [_build_service_config(service) for service in services]}
def _build_service_config(service):
built_service = copy.deepcopy(service)
if "secret" in service:
built_service["secret"] = __salt__["credentials.get_token"](service["secret"])
return built_service

File Metadata

Mime Type
text/x-python
Expires
Sat, Mar 7, 01:36 (6 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3500278
Default Alt Text
notifications.py (825 B)

Event Timeline