diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-09-21 07:17:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-21 07:17:52 +0000 |
commit | 58ac79cd54821bf8c3891d136be4254aa79bfa08 (patch) | |
tree | 52bd6f03a9e7d50b44ffce15dab47d5ddead381c /func/driver.py | |
parent | ad90940e82c0039372d68f3136791851994557a9 (diff) | |
parent | 6183cefebbc1af8ad1987dc61372d6c2d6a59f6d (diff) |
Merge "add unified logger process for qtip"
Diffstat (limited to 'func/driver.py')
-rw-r--r-- | func/driver.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/func/driver.py b/func/driver.py index 726016a5..ff40a4cc 100644 --- a/func/driver.py +++ b/func/driver.py @@ -1,20 +1,22 @@ ############################################################################## -# Copyright (c) 2015 Dell Inc and others. +# Copyright (c) 2015 Dell Inc, ZTE and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -import logging -from func.ansible_api import AnsibleApi +from utils import logger_utils +from ansible_api import AnsibleApi + +logger = logger_utils.QtipLogger('driver').get class Driver: def __init__(self): - logging.info("Class driver initialized\n") + logger.info("Class driver initialized\n") self.installer_username = {'fuel': 'root', 'joid': 'ubuntu', 'apex': 'heat-admin'} @@ -58,7 +60,7 @@ class Driver: return special_json def run_ansible_playbook(self, benchmark, extra_vars): - logging.info(extra_vars) + logger.info(extra_vars) ansible_api = AnsibleApi() ansible_api.execute_playbook('./data/hosts', './benchmarks/playbooks/{0}.yaml'.format(benchmark), |