summaryrefslogtreecommitdiffstats
path: root/sdnvpn/lib/gather_logs.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-22 08:41:11 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-22 08:43:36 +0100
commit4e6758bb8d2501b7e050910f9351223976b20101 (patch)
tree285a353d8df7c3a2e2805b06ab66122a49cb8a67 /sdnvpn/lib/gather_logs.py
parent45194eff156234cea416b94d7988a1ccf8a891e6 (diff)
Switch from CONST to CONF
CONST is not the right Functest object to get config data. Change-Id: I764a0a2a24447c941d1e726f3116593b29dd1c1e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'sdnvpn/lib/gather_logs.py')
-rw-r--r--sdnvpn/lib/gather_logs.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/sdnvpn/lib/gather_logs.py b/sdnvpn/lib/gather_logs.py
index ed95fac..b1c3c81 100644
--- a/sdnvpn/lib/gather_logs.py
+++ b/sdnvpn/lib/gather_logs.py
@@ -19,7 +19,7 @@ import inspect
import sdnvpn.lib.utils as test_utils
import functest.utils.functest_utils as ft_utils
-from functest.utils.constants import CONST
+from functest.utils import config
LIB_PATH = os.path.dirname(
os.path.abspath(inspect.getfile(inspect.currentframe())))
@@ -44,10 +44,9 @@ def gather_logs(name):
'tar -xzvf /tmp/log_output-%s.tar.gz --strip-components=1'
% node.get_dict()['name'])
- ft_utils.execute_command_raise('cd %s;tar czvf sdnvpn-logs-%s.tar.gz'
- ' /tmp/sdnvpn-logs/'
- % (CONST.__getattribute__('dir_results'),
- name))
+ ft_utils.execute_command_raise(
+ 'cd %s;tar czvf sdnvpn-logs-%s.tar.gz /tmp/sdnvpn-logs/' % (
+ getattr(config.CONF, 'dir_results'), name))
if __name__ == '__main__':