diff options
author | rb7147 <rb7147@att.com> | 2017-09-27 16:33:51 -0400 |
---|---|---|
committer | rb7147 <rb7147@att.com> | 2017-09-27 16:34:08 -0400 |
commit | b5caf28492a151d811dd3ce7e6ade26e56deade9 (patch) | |
tree | f593c839b989fbc4c510193638e174307e4256d2 /POLICY-SDK-APP/src/main/java/org | |
parent | 78c21e39873301cd41c72fe6f271454fd0c7f0a6 (diff) |
Added R1 MS Tosca template
Added the MS Tosca template to db scripts and cleaned up old policies.
Issue-Id: POLICY-264
Change-Id: I0ee5cffbb78d1f7df0379b71fe0f3368587aa9a6
Signed-off-by: rb7147 <rb7147@att.com>
Diffstat (limited to 'POLICY-SDK-APP/src/main/java/org')
-rw-r--r-- | POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreatePolicyController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreatePolicyController.java b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreatePolicyController.java index 625b2bdd8..71d0b3d03 100644 --- a/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreatePolicyController.java +++ b/POLICY-SDK-APP/src/main/java/org/onap/policy/controller/CreatePolicyController.java @@ -60,7 +60,7 @@ public class CreatePolicyController extends RestrictedBaseController{ policyAdapter.setOldPolicyFileName(policyAdapter.getPolicyName()); policyAdapter.setConfigType(entity.getConfigurationData().getConfigType()); policyAdapter.setConfigBodyData(entity.getConfigurationData().getConfigBody()); - String policyNameValue = policyAdapter.getPolicyName().substring(policyAdapter.getPolicyName().indexOf(' ') + 1); + String policyNameValue = policyAdapter.getPolicyName().substring(policyAdapter.getPolicyName().indexOf('_') + 1); policyAdapter.setPolicyName(policyNameValue); String description = ""; try{ |