From ad2e7b1dc0880b7c5554269e00679e78ca5d57c8 Mon Sep 17 00:00:00 2001 From: Leo Wang Date: Thu, 24 Nov 2016 03:10:14 -0500 Subject: [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 --- dovetail/prepare_env.py | 6 ++---- 1 file 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__': -- cgit 1.2.3-korg