From: Alex Shatov Date: Fri, 23 Feb 2018 19:29:38 +0000 (-0500) Subject: fixed a bug in policy-get plugin X-Git-Tag: 2.0.0-ONAP~20 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ec244fb888c49beb3a8d24d3fc1b660ff144c4b3;p=dcaegen2%2Fplatform%2Fplugins.git fixed a bug in policy-get plugin - do not raise an exception on not being able to bring policies Change-Id: I39dda5492903c5b25f4a8b46d96d27a5b8ee1547 Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-347 --- diff --git a/dcae-policy/dcaepolicyplugin/tasks.py b/dcae-policy/dcaepolicyplugin/tasks.py index 7261835..455b41b 100644 --- a/dcae-policy/dcaepolicyplugin/tasks.py +++ b/dcae-policy/dcaepolicyplugin/tasks.py @@ -172,7 +172,6 @@ def _policies_find(): except Exception as ex: error = "failed to find policies: {0}".format(str(ex)) ctx.logger.error("{0}: {1}".format(error, traceback.format_exc())) - raise NonRecoverableError(error) return True