summaryrefslogtreecommitdiffstats
path: root/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib
diff options
context:
space:
mode:
authorSchmalzried, Terry (ts862m) <ts862m@att.com>2019-01-17 13:43:38 -0500
committerSchmalzried, Terry (ts862m) <ts862m@att.com>2019-01-18 15:13:48 -0500
commit1219143b0fead020ee2b53274a29504b6b5a11af (patch)
tree09fadc61daf695b47be201927f596bcaf415b257 /onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib
parentd37dad30898c1e5ee627d16ff63791089175c4a3 (diff)
rm sleeper store_policies
Issue-ID: DCAEGEN2-1086 Change-Id: I7ea5dbb38a6ec4501c54be65ffd7ace85e408ce1 Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
Diffstat (limited to 'onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib')
-rw-r--r--onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py b/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py
index 65c2614..a8d8d70 100644
--- a/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py
+++ b/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py
@@ -175,7 +175,6 @@ class Policies(object):
if ctx.type != NODE_INSTANCE:
raise NonRecoverableError("can only invoke gather_policies_to_node on node")
- policies_outputted = False
policy_bodies = []
try:
policies = {}
@@ -189,8 +188,6 @@ class Policies(object):
ctx.instance.runtime_properties[POLICY_FILTERS] = policy_filters
policy_bodies = Policies._get_policy_bodies_dict(policies)
- if policy_bodies:
- policies_outputted = PoliciesOutput.store_policies(ACTION_GATHERED, policy_bodies)
except Exception as ex:
error = "Failed to set the policies {0}".format(str(ex))
ctx.logger.error("{0}: {1}".format(error, traceback.format_exc()))
@@ -198,7 +195,7 @@ class Policies(object):
func_result = func(*args, **kwargs)
- if not policies_outputted and policy_bodies:
+ if policy_bodies:
PoliciesOutput.store_policies(ACTION_GATHERED, policy_bodies)
return func_result