Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Apr 22, 2021
1 parent ac00a1f commit b45aa5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions storage_service/locations/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions storage_service/locations/models/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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")),
)
Expand Down

0 comments on commit b45aa5c

Please sign in to comment.