Skip to content

Commit

Permalink
(t) replication spawn error rockstor#2766
Browse files Browse the repository at this point in the history
Modernise previously missed replication imports re Py3.*
  • Loading branch information
phillxnet committed Dec 16, 2023
1 parent 0f7f997 commit 545ee22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/rockstor/smart_manager/replication/listener_broker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2012-2020 RockStor, Inc. <http://rockstor.com>
Copyright (c) 2012-2023 RockStor, Inc. <https://rockstor.com>
This file is part of RockStor.
RockStor is free software; you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from multiprocessing import Process
Expand All @@ -24,9 +24,9 @@
from storageadmin.models import NetworkConnection, Appliance
from smart_manager.models import ReplicaTrail, ReplicaShare, Replica, Service
from django.conf import settings
from sender import Sender
from receiver import Receiver
from util import ReplicationMixin
from smart_manager.replication.sender import Sender
from smart_manager.replication.receiver import Receiver
from smart_manager.replication.util import ReplicationMixin
from cli import APIWrapper
import logging

Expand Down
7 changes: 3 additions & 4 deletions src/rockstor/smart_manager/replication/receiver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2012-2020 RockStor, Inc. <http://rockstor.com>
Copyright (c) 2012-2023 RockStor, Inc. <https://rockstor.com>
This file is part of RockStor.
RockStor is free software; you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from multiprocessing import Process
Expand All @@ -26,12 +26,11 @@
from django.conf import settings
from django import db
from contextlib import contextmanager
from util import ReplicationMixin
from smart_manager.replication.util import ReplicationMixin
from fs.btrfs import get_oldest_snap, remove_share, set_property, is_subvol, mount_share
from system.osi import run_command
from storageadmin.models import Pool, Share, Appliance
from smart_manager.models import ReplicaShare, ReceiveTrail
import shutil
from cli import APIWrapper
import logging

Expand Down
6 changes: 3 additions & 3 deletions src/rockstor/smart_manager/replication/sender.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2012-2020 RockStor, Inc. <http://rockstor.com>
Copyright (c) 2012-2023 RockStor, Inc. <https://rockstor.com>
This file is part of RockStor.
RockStor is free software; you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from multiprocessing import Process
Expand All @@ -26,7 +26,7 @@
import time
from django.conf import settings
from contextlib import contextmanager
from util import ReplicationMixin
from smart_manager.replication.util import ReplicationMixin
from fs.btrfs import get_oldest_snap, is_subvol
from smart_manager.models import ReplicaTrail
from cli import APIWrapper
Expand Down

0 comments on commit 545ee22

Please sign in to comment.