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

Function update_config

python3_cron_scripts/send_remote_server.py:82–94  ·  view source on GitHub ↗

Copy the config data to the remote database

(logger, mongo_connector, rm_connector)

Source from the content-addressed store, hash-verified

80
81
82def update_config(logger, mongo_connector, rm_connector):
83 """
84 Copy the config data to the remote database
85 """
86 logger.info("Starting Config..")
87 config_collection = mongo_connector.get_config_connection()
88 remote_config_collection = rm_connector.get_config_connection()
89
90 configs = config_collection.find({}, {"_id": 0})
91
92 remote_config_collection.delete_many({})
93 for config in configs:
94 remote_config_collection.insert_one(config)
95
96
97def update_aws_cidrs(logger, mongo_connector, rm_connector):

Callers 1

mainFunction · 0.85

Calls 1

get_config_connectionMethod · 0.45

Tested by

no test coverage detected