From b45aa5c1b6e37c177cb2d960de6d33b62104904f Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Thu, 22 Apr 2021 15:31:14 -0400 Subject: [PATCH] Fix migration --- storage_service/locations/constants.py | 10 +++++----- storage_service/locations/models/space.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/storage_service/locations/constants.py b/storage_service/locations/constants.py index 7c51f892b..d07eaba04 100644 --- a/storage_service/locations/constants.py +++ b/storage_service/locations/constants.py @@ -74,6 +74,11 @@ "form": forms.NFSForm, "fields": ["manually_mounted", "remote_name", "remote_path", "version"], }, + models.Space.OFFLINE_REPLICA_STAGING: { + "model": models.OfflineReplicaStaging, + "form": forms.OfflineReplicaStagingForm, + "fields": [], + }, models.Space.PIPELINE_LOCAL_FS: { "model": models.PipelineLocalFS, "form": forms.PipelineLocalFSForm, @@ -84,11 +89,6 @@ "rsync_password", ], }, - models.Space.REPLICA: { - "model": models.OfflineReplicaStaging, - "form": forms.OfflineReplicaStagingForm, - "fields": [], - }, models.Space.SWIFT: { "model": models.Swift, "form": forms.SwiftForm, diff --git a/storage_service/locations/models/space.py b/storage_service/locations/models/space.py index d7864943f..4dbab68ed 100644 --- a/storage_service/locations/models/space.py +++ b/storage_service/locations/models/space.py @@ -143,8 +143,8 @@ class Space(models.Model): LOCAL_FILESYSTEM = "FS" LOM = "LOM" NFS = "NFS" + OFFLINE_REPLICA_STAGING = "REPLICA" PIPELINE_LOCAL_FS = "PIPE_FS" - REPLICA = "REPLICA" SWIFT = "SWIFT" GPG = "GPG" S3 = "S3" @@ -162,8 +162,8 @@ class Space(models.Model): (LOCAL_FILESYSTEM, _("Local Filesystem")), (LOM, _("LOCKSS-o-matic")), (NFS, _("NFS")), + (OFFLINE_REPLICA_STAGING, _("Write-Only Replica Staging on Local Filesystem")), (PIPELINE_LOCAL_FS, _("Pipeline Local Filesystem")), - (REPLICA, _("Write-Only Replica Staging on Local Filesystem")), (SWIFT, _("Swift")), (S3, _("S3")), )