From f1f1ba5dac1b531c346758072c798ceb511100b3 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 20 Nov 2017 16:38:28 -0800 Subject: Refactor clone and compile functions The clone_all_* and compile_all_* functions share same instructions for performing their functionality. This change pretends to reduce the duplication of the code. Change-Id: Ief63a5a58c79af85c829602b0451637424659438 Signed-off-by: Victor Morales Issue-Id: INT-339 --- bootstrap/vagrant-onap/lib/mr | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bootstrap/vagrant-onap/lib/mr') diff --git a/bootstrap/vagrant-onap/lib/mr b/bootstrap/vagrant-onap/lib/mr index 55096cb4b..2ffe69e26 100755 --- a/bootstrap/vagrant-onap/lib/mr +++ b/bootstrap/vagrant-onap/lib/mr @@ -4,11 +4,6 @@ source /var/onap/functions mr_src_folder=$git_src_folder/dcae/message-router -# clone_mr_repos() - Function that clones the Message Router repositories -function clone_mr_repos { - clone_repo dcae/demo/startup/message-router $mr_src_folder -} - # get_mr_images() - Function that retrieves the Message Router Docker images function get_mr_images { pull_docker_image attos/dmaap @@ -27,7 +22,7 @@ function install_message_router { # init_mr() - Function that initialize Message Router services function init_mr { if [[ "$clone_repo" == "True" ]]; then - clone_mr_repos + clone_repo dcae/demo/startup/message-router $mr_src_folder fi if [[ "$skip_get_images" == "False" ]]; then get_mr_images -- cgit 1.2.3-korg