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
1
"""
2
This migration inspects all the Importers and writes any TLS certificates or keys they have to local
3
storage, as required by the streamer.
4
"""
5
from pulp.server.db import model
6

  
7

  
8
def migrate():
9
    """
10
    Write the TLS certificates and keys for each Importer to local storage.
11
    """
12
    for importer in model.Importer.objects.all():
13
        importer.save()
0
- 
    (1-1/1)