diff options
author | Vikas Varma <vv8305@att.com> | 2019-04-09 13:51:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-09 13:51:04 +0000 |
commit | 134a18e619772b6cb21000c97291d7966d5598eb (patch) | |
tree | f8bb8721373f998333fb995ebc085b0aecd1beb1 /osdfapp.py | |
parent | 2d59800cf61a90e2a80902186bdce3b28e5ae14d (diff) | |
parent | 0e957e6ff4bae412ba909f9677d485d4abc0362b (diff) |
Merge "Automate the process of policy model uploading"
Diffstat (limited to 'osdfapp.py')
-rwxr-xr-x | osdfapp.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -34,6 +34,7 @@ from schematics.exceptions import DataError import osdf.adapters.aaf.sms as sms import osdf.operation.responses from osdf.adapters.policy.interface import get_policies +from osdf.adapters.policy.interface import upload_policy_models from osdf.config.base import osdf_config from osdf.logging.osdf_logging import MH, audit_log, error_log, debug_log from osdf.models.api.pciOptimizationRequest import PCIOptimizationAPI @@ -98,6 +99,9 @@ def handle_data_error(e): def do_osdf_health_check(): """Simple health check""" audit_log.info("A health check request is processed!") + """Upload policy models""" + response = upload_policy_models() + audit_log.info(response) return "OK" |