summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Wang <grakiss.wanglei@huawei.com>2016-11-24 03:10:14 -0500
committerLeo Wang <grakiss.wanglei@huawei.com>2016-11-24 03:54:29 -0500
commitad2e7b1dc0880b7c5554269e00679e78ca5d57c8 (patch)
tree2fd7729d1bbe6c07addafd48ea82fa17f91bbd51
parent3c58e018a12ed2f3c09c70c5577a740fbc7e3f14 (diff)
[Dovetail Tool] Prepare env fail due to dependency on pyyaml
JIRA:DOVETAIL-92 root cause: 1. import dovetail_logger while it depends on dovetail_config 2. dovetail_config import yaml 3. yaml is not installed yet action: 1. remove dovetail_logger Change-Id: I51f5e8bab2451639a4a9ebf1978fe8a292df1704 Signed-off-by: Leo Wang <grakiss.wanglei@huawei.com>
-rw-r--r--dovetail/prepare_env.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/dovetail/prepare_env.py b/dovetail/prepare_env.py
index 9cf0f4f0..3ddf75bc 100644
--- a/dovetail/prepare_env.py
+++ b/dovetail/prepare_env.py
@@ -9,7 +9,6 @@
import platform
-import utils.dovetail_logger as dt_logger
import utils.dovetail_utils as dt_utils
@@ -52,15 +51,14 @@ def get_docker_pkgname(os):
def main():
"""Dovetail prepare env main"""
- logger = dt_logger.Logger('prepare_env.py').getLogger()
os_name = get_os_lower()
cmd = "sudo %s -y install %s python-pip" \
% (get_install_bin(os_name), get_docker_pkgname(os_name))
- dt_utils.exec_cmd(cmd, logger)
+ dt_utils.exec_cmd(cmd)
cmd = "sudo pip install click pyyaml jinja2"
- dt_utils.exec_cmd(cmd, logger)
+ dt_utils.exec_cmd(cmd)
if __name__ == '__main__':