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:
Aanand Prasad 2015-05-21 11:25:06 +01:00
commit 0fdb8bf814
6 changed files with 61 additions and 52 deletions

View file

@ -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__)