aboutsummaryrefslogtreecommitdiffstats
path: root/lib/policy.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/policy.js')
-rw-r--r--lib/policy.js8
1 files changed, 6 insertions, 2 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 = [];