Fix to resolve unpushing(delete) policies issue 11/87911/2
authorMichael Mokry <michael.mokry@att.com>
Thu, 16 May 2019 17:46:03 +0000 (12:46 -0500)
committerMichael Mokry <michael.mokry@att.com>
Mon, 20 May 2019 16:04:09 +0000 (11:04 -0500)
commit202be3bf6f8b95ed1012b0127f8b859410ce6be5
treeb30658eb01c25f4ae0c419e0faf02e305a79839e
parentb559c050557e757325743bd37b41fd49b01ba19a
Fix to resolve unpushing(delete) policies issue

Added code the ONAP-PDP-REST to fix an issue causing the policyName to be null
and fail validation

Updated Changes per Review:
1. re-added the else for "No Policy Scope given"
2. localized the policyName and policyScope declarations to reset to null
each time through the loop
3. Changed to polName check to endsWith per Jim's review

Change-Id: I912511ef362cc79e89adc1c9da93d387e273c32a
Issue-ID: POLICY-1754
Signed-off-by: Michael Mokry <michael.mokry@att.com>
ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/services/PdpApiService.java