Commit 974acf01 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Slice component:

- Pre-merge code cleanup
parent bfa801f7
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.


import logging
from typing import Dict, List, Optional, Set, Tuple
from typing import Dict, List, Optional, Set, Tuple
from common.Constants import DEFAULT_CONTEXT_NAME
from common.Constants import DEFAULT_CONTEXT_NAME
from common.Settings import get_setting
from common.Settings import get_setting
@@ -28,8 +27,6 @@ TRUE_VALUES = {'Y', 'YES', 'TRUE', 'T', 'E', 'ENABLE', 'ENABLED'}


NO_ISOLATION = IsolationLevelEnum.NO_ISOLATION
NO_ISOLATION = IsolationLevelEnum.NO_ISOLATION


LOGGER = logging.getLogger(__name__)

def is_slice_grouping_enabled() -> bool:
def is_slice_grouping_enabled() -> bool:
    is_enabled = get_setting(SETTING_NAME_SLICE_GROUPING, default=None)
    is_enabled = get_setting(SETTING_NAME_SLICE_GROUPING, default=None)
    if is_enabled is None: return False
    if is_enabled is None: return False