MCPcopy Create free account
hub / github.com/adobe/Marinus / add_tls_org

Function add_tls_org

python3_cron_scripts/setup.py:287–298  ·  view source on GitHub ↗

For some scripts, Marinus searches the Distinguished Name values of certificates. This specifies the Organization values that Marinus will use when searching the Distinguished Name fields.

(mongo_connector, org)

Source from the content-addressed store, hash-verified

285
286
287def add_tls_org(mongo_connector, org):
288 """
289 For some scripts, Marinus searches the Distinguished Name values of certificates.
290 This specifies the Organization values that Marinus will use when searching the Distinguished Name fields.
291 """
292 config_collection = mongo_connector.get_config_connection()
293 now = datetime.now()
294
295 print("Adding TLS Org: " + org)
296 config_collection.update_many(
297 {}, {"$addToSet": {"SSL_Orgs": org}, "$set": {"updated": now}}
298 )
299
300
301def add_dns_admin(mongo_connector, dns_admin):

Callers 1

mainFunction · 0.85

Calls 1

get_config_connectionMethod · 0.45

Tested by

no test coverage detected