diff options
author | Alex Shatov <alexs@att.com> | 2018-03-13 17:38:02 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2018-03-13 17:38:02 -0400 |
commit | ef6beaad0aff2a99c6af065d25a60d8054ead39b (patch) | |
tree | 81fee9ac699bcf05ede66e3d273e4d6053972df3 | |
parent | 5035caeacb65e7d871730beca04877c37d1f76f8 (diff) |
on /policy APIs return server_instance_uuid
- that will allow the policy-handler to identify the change
of deployment-handler instance and send the catch_up
message to bring all the policies up to date
- proper jira ticket
Change-Id: I53f99ea8316f506ab999fb6183952409ecb6e53b
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-389
-rw-r--r-- | lib/policy.js | 8 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | version.properties | 2 |
4 files changed, 9 insertions, 5 deletions
diff --git a/lib/policy.js b/lib/policy.js index b91e5fd..d471cff 100644 --- a/lib/policy.js +++ b/lib/policy.js @@ -63,7 +63,10 @@ function policyUpdate(req, res, next) { /** * reply to and free up the policy_handler */ - res.json({}); + const response = {"requestID": req.dcaeReqId}; + response.started = new Date(); + response.server_instance_uuid = process.mainModule.exports.config.server_instance_uuid; + res.json(response); policy_update.latest_policies = JSON.parse(policy_update.latest_policies); policy_update.removed_policies = JSON.parse(policy_update.removed_policies); @@ -274,8 +277,9 @@ function policyUpdate(req, res, next) { */ function getComponentPoliciesFromCloudify(req, res, next) { logger.debug(req.dcaeReqId, "getComponentPoliciesFromCloudify " + req.originalUrl); - const response = {"requestId": req.dcaeReqId}; + const response = {"requestID": req.dcaeReqId}; response.started = new Date(); + response.server_instance_uuid = process.mainModule.exports.config.server_instance_uuid; response.node_instance_ids = []; response.component_policies = []; response.component_policy_filters = []; diff --git a/package.json b/package.json index d7d20e7..b239f5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "onap-dcae-deployment-handler", - "version": "4.3.1", + "version": "4.3.2", "description": "ONAP DCAE Deployment Handler", "main": "deployment-handler.js", "dependencies": { @@ -29,7 +29,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <groupId>org.onap.dcaegen2.platform</groupId> <artifactId>deployment-handler</artifactId> <name>dcaegen2-platform-deployment-handler</name> - <version>2.0.1-SNAPSHOT</version> + <version>2.0.2-SNAPSHOT</version> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> diff --git a/version.properties b/version.properties index ee9f646..a75c90e 100644 --- a/version.properties +++ b/version.properties @@ -1,6 +1,6 @@ major=2
minor=0
-patch=1
+patch=2
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT
|