Commit 4fb300fc authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor migration cli fixes. [skip ci]

parent da536042
Pipeline #45739 skipped
......@@ -149,6 +149,11 @@ class Package(Document):
"""
upload_id = os.path.basename(upload_path)
logger = utils.get_logger(__name__, source_upload_path=upload_path, source_upload_id=upload_id)
if not os.path.isdir(upload_path):
logger.error('upload path is not a directory')
return []
package_query = cls.objects(upload_id=upload_id)
upload_directory = files.DirectoryObject(target_dir, upload_id, create=True, prefix=True)
restricted = 0
......
export NOMAD_CLIENT_URL=http://enc-staging-nomad.esc.rzg.mpg.de/fairdi/nomad/migration/api
export NOMAD_CLIENT_USER=admin
export NOMAD_LOGSTASH_TCP_PORT=15000
export NOMAF_FS_MIGRATION_PACKAGES=/nomad/fairdi/migration/fs/migration_packages
export NOMAF_FS_STAGING=/nomad/fairdi/migration/fs/staging
export NOMAF_FS_PUBLIC=/nomad/fairdi/migration/fs/public
export NOMAF_FS_TMP=/nomad/fairdi/migration/fs/tmp
export NOMAD_FS_MIGRATION_PACKAGES=/nomad/fairdi/migration/fs/migration_packages
export NOMAD_FS_STAGING=/nomad/fairdi/migration/fs/staging
export NOMAD_FS_PUBLIC=/nomad/fairdi/migration/fs/public
export NOMAD_FS_TMP=/nomad/fairdi/migration/fs/tmp
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment