Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56320777
certificates.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
certificates.py
View Options
# -------------------------------------------------------------
# Salt — Certificates module
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Functions related to certificates management
# License: BSD-2-Clause
# -------------------------------------------------------------
from
typing
import
Dict
def
get_certificates_options
()
->
Dict
:
"""
Resolve the pillar data for certificates options.
Merge certificates_default_options and certificates_options dictionaries.
"""
options
=
{}
default_options
=
__pillar__
.
get
(
"certificates_default_options"
,
{})
certificates_options
=
__pillar__
.
get
(
"certificates_options"
,
{})
for
certificate
in
__pillar__
.
get
(
"certificates"
,
[]):
certificate_options
=
default_options
.
copy
()
for
key
,
value
in
certificates_options
.
get
(
certificate
,
{})
.
items
():
certificate_options
[
key
]
=
value
options
[
certificate
]
=
certificate_options
return
options
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Sat, Nov 7, 00:25 (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3973711
Default Alt Text
certificates.py (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment