commit | 4a9318d693e3331253fb4f319738a282bfa15214 | [log] [tgz] |
---|---|---|
author | Joseph O'Leary <joseph.o.leary@est.tech> | Thu Mar 19 21:36:48 2020 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Thu Mar 19 21:36:48 2020 +0000 |
tree | 4088297313484df1a5ea4f7e6df9658fc4dc5f4e | |
parent | 0e06946316fdb2371c9cad290bae3bedcd9faf03 [diff] | |
parent | cd80d6381e8519bf7566c5c757be7195339c936f [diff] |
Merge "Commit pnf deletion to database in PMSH"
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 c4b9b56..2150dc2 100755 --- a/components/pm-subscription-handler/pmsh_service/mod/network_function.py +++ b/components/pm-subscription-handler/pmsh_service/mod/network_function.py
@@ -82,4 +82,6 @@ nf = NetworkFunctionModel.query.filter( NetworkFunctionModel.nf_name == nf_name).one_or_none() - db.session.delete(nf) if nf else None + if nf: + db.session.delete(nf) + db.session.commit()
diff --git a/components/pm-subscription-handler/pom.xml b/components/pm-subscription-handler/pom.xml index 74ad400..04d6fac 100644 --- a/components/pm-subscription-handler/pom.xml +++ b/components/pm-subscription-handler/pom.xml
@@ -31,7 +31,7 @@ <groupId>org.onap.dcaegen2.services</groupId> <artifactId>pmsh</artifactId> <name>dcaegen2-services-pm-subscription-handler</name> - <version>1.0.0-SNAPSHOT</version> + <version>1.0.1-SNAPSHOT</version> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <sonar.sources>.</sonar.sources>
diff --git a/components/pm-subscription-handler/version.properties b/components/pm-subscription-handler/version.properties index 2ddebb3..0f1f46a 100644 --- a/components/pm-subscription-handler/version.properties +++ b/components/pm-subscription-handler/version.properties
@@ -1,6 +1,6 @@ major=1 minor=0 -patch=0 +patch=1 base_version=${major}.${minor}.${patch} release_version=${base_version} snapshot_version=${base_version}-SNAPSHOT