diff options
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/network_function.py')
-rwxr-xr-x | components/pm-subscription-handler/pmsh_service/mod/network_function.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/network_function.py b/components/pm-subscription-handler/pmsh_service/mod/network_function.py index 979cc775..191e9512 100755 --- a/components/pm-subscription-handler/pmsh_service/mod/network_function.py +++ b/components/pm-subscription-handler/pmsh_service/mod/network_function.py @@ -17,7 +17,6 @@ # ============LICENSE_END===================================================== import re -from enum import Enum from mod import logger, db from mod.api.db_models import NetworkFunctionModel @@ -55,7 +54,6 @@ class NetworkFunction: db.session.commit() logger.info(f'Network Function {new_nf.nf_name} successfully created.') return new_nf - else: logger.debug(f'Network function {existing_nf.nf_name} already exists,' f' returning this network function..') @@ -109,9 +107,4 @@ class NetworkFunctionFilter: bool: True if matched, else False. """ return self.regex_matcher.search(nf_name) and \ - orchestration_status == OrchestrationStatus.ACTIVE.value - - -class OrchestrationStatus(Enum): - ACTIVE = 'Active' - INVENTORIED = 'Inventoried' + orchestration_status == 'Active' |