Project

Profile

Help

Task #2323 ยป storage-migration.patch

recommended patch. - jortel@redhat.com, 10/14/2016 10:30 PM

View differences:

pulp-2.8.7/server/pulp/plugins/migration/standard_storage_path.py 2016-09-22 16:54:10.521420391 -0400
from collections import namedtuple
from hashlib import sha256
from itertools import chain
from logging import getLogger
from pulp.plugins.util.misc import mkdir
from pulp.server.config import config
log = getLogger(__name__)
# stored in the Batch
Item = namedtuple(
'Item',
......
1. Batch the migration.
2. Delete empty directories created by the migration.
"""
# Re: bug:1381702
log.info('Standard storage path migration skipped.')
return
batch = Batch()
for unit in chain(*self.plans):
batch.add(unit)
    (1-1/1)