diff options
author | 2020-07-27 10:02:19 +0000 | |
---|---|---|
committer | 2020-07-31 13:21:08 +0000 | |
commit | e97a5ce265f7e1d3380fab9c4132e2b002e8636c (patch) | |
tree | 416c4c60a339419d06b6ae165b9231c16fa44f45 /miss_htbt_service/config_notif.py | |
parent | a9e77b57b3c1f326ddf6f29e2c89765344e53b99 (diff) |
Run in Python 3.8
Use image recommended by SECCOM
Issue-ID: DCAEGEN2-2292
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I8d77f150c9fe314bf26bac2c9fac7ebc9782c9d8
Diffstat (limited to 'miss_htbt_service/config_notif.py')
-rw-r--r-- | miss_htbt_service/config_notif.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/miss_htbt_service/config_notif.py b/miss_htbt_service/config_notif.py index 6b54bad..b420dc2 100644 --- a/miss_htbt_service/config_notif.py +++ b/miss_htbt_service/config_notif.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2018-2020 AT&T Intellectual Property, Inc. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. +# Copyright 2020 Deutsche Telekom. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,10 +29,10 @@ import json import psycopg2 from pathlib import Path import os.path as path -from .mod import trapd_settings as tds +import mod.trapd_settings as tds # use the fully qualified name here to let monkeypatching work # from .mod.trapd_get_cbs_config import get_cbs_config -import miss_htbt_service.mod.trapd_get_cbs_config +import mod.trapd_get_cbs_config hb_properties_file = path.abspath(path.join(__file__, "../config/hbproperties.yaml")) @@ -169,7 +170,7 @@ def update_hb_common(update_flg, process_id, state, user_name,password,ip_addres def fetch_json_file(download_json = "../etc/download1.json", config_json = "../etc/config.json"): # use the fully qualified name here to let monkeypatching work # if get_cbs_config(): - if miss_htbt_service.mod.trapd_get_cbs_config.get_cbs_config(): + if mod.trapd_get_cbs_config.get_cbs_config(): current_runtime_config_file_name = download_json envPytest = os.getenv('pytest', "") if (envPytest == 'test'): |