Commit 4cab582e authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Fix pylint warnings

parent 25304fa4
......@@ -20,12 +20,12 @@ import time
from typing import List
from zoe_lib.config import get_conf
from zoe_lib.state import Execution, Service, SQLManager # pylint: disable=unused-import
from zoe_lib.state import Execution, Service # pylint: disable=unused-import
from zoe_master.backends.base import BaseBackend
from zoe_master.backends.service_instance import ServiceInstance
from zoe_master.exceptions import ZoeStartExecutionFatalException, ZoeStartExecutionRetryException, ZoeException
from zoe_master.stats import ClusterStats, NodeStats # pylint: disable=unused-import
from zoe_master.stats import ClusterStats # pylint: disable=unused-import
from zoe_master.backends.swarm.backend import SwarmBackend
......@@ -158,7 +158,8 @@ def terminate_service(service: Service) -> None:
backend = _get_backend()
if service.status != Service.INACTIVE_STATUS:
if service.status == Service.ERROR_STATUS:
log.debug('Service {} terminated'.format(
elif service.status == Service.ACTIVE_STATUS or service.status == Service.TERMINATING_STATUS or service.status == Service.STARTING_STATUS:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment