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

Method clean_collection

python3_cron_scripts/libs3/InfobloxHelper.py:98–103  ·  view source on GitHub ↗

Cleans the database of the records which are not seen again on the basis of the _ref value.

(previous_records, collection)

Source from the content-addressed store, hash-verified

96
97 @staticmethod
98 def clean_collection(previous_records, collection):
99 """
100 Cleans the database of the records which are not seen again on the basis of the _ref value.
101 """
102 for previous_record in previous_records:
103 collection.delete_one({"_ref": previous_record})

Callers 2

get_infoblox_extattrMethod · 0.80
get_infoblox_dnsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected