Refactor migration logic
- Rename `migration` module to `legacy` to make its legacy-ness explicit - Move `check_for_legacy_containers` into `legacy` module - Fix migration test so it can be run in isolation Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
e538923545
commit
0fdb8bf814
6 changed files with 61 additions and 52 deletions
|
|
@ -7,8 +7,9 @@ from docker.errors import APIError
|
|||
|
||||
from .config import get_service_name_from_net, ConfigurationError
|
||||
from .const import LABEL_PROJECT, LABEL_SERVICE, LABEL_ONE_OFF
|
||||
from .service import Service, check_for_legacy_containers
|
||||
from .service import Service
|
||||
from .container import Container
|
||||
from .legacy import check_for_legacy_containers
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue