summaryrefslogtreecommitdiffstats
path: root/dcae-policy/dcaepolicyplugin
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-02-01 14:07:44 -0500
committerAlex Shatov <alexs@att.com>2018-02-01 14:07:44 -0500
commit5d3affcceb1ddc231764c4a3769a9911f4f4746c (patch)
treed135591e75ac7a7da237b5acf3e748d3e4940e01 /dcae-policy/dcaepolicyplugin
parentf15a52f57c064f801e56b62c96d4b6527cdf1cf3 (diff)
improved message structure for latest policies
* unit test coverage 77% Change-Id: Iebe582bb20173a3f4689239f3a2d822edb48ccc1 Issue-ID: DCAEGEN2-249 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'dcae-policy/dcaepolicyplugin')
-rw-r--r--dcae-policy/dcaepolicyplugin/tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dcae-policy/dcaepolicyplugin/tasks.py b/dcae-policy/dcaepolicyplugin/tasks.py
index fef0850..6d383ce 100644
--- a/dcae-policy/dcaepolicyplugin/tasks.py
+++ b/dcae-policy/dcaepolicyplugin/tasks.py
@@ -38,6 +38,7 @@ POLICY_REQUIRED = 'policy_required'
POLICY_BODY = 'policy_body'
POLICIES_FILTERED = 'policies_filtered'
POLICY_FILTER = 'policy_filter'
+LATEST_POLICIES = "latest_policies"
REQUEST_ID = "requestID"
@@ -101,7 +102,7 @@ class PolicyHandler(object):
return
res.raise_for_status()
- return res.json()
+ return res.json().get(LATEST_POLICIES)
def _policy_get():
"""