Loading src/slice/service/slice_grouper/Tools.py +0 −3 Original line number Original line Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading
src/slice/service/slice_grouper/Tools.py +0 −3 Original line number Original line Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading