Project

Profile

Help

Issue #1771 ยป 0001-Add-a-migration-that-writes-Importer-TLS-files-to-lo.patch

simple migration patch - rbarlow, 03/31/2016 09:55 PM

View differences:

server/pulp/server/db/migrations/0023_importer_tls_storage.py
"""
This migration inspects all the Importers and writes any TLS certificates or keys they have to local
storage, as required by the streamer.
"""
from pulp.server.db import model
def migrate():
"""
Write the TLS certificates and keys for each Importer to local storage.
"""
for importer in model.Importer.objects.all():
importer.save()
    (1-1/1)