Refactor clone and compile functions
[integration.git] / bootstrap / vagrant-onap / lib / aai
index d267e02..828d4d1 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-set -o xtrace
-
 source /var/onap/functions
 
 hbase_version=1.2.3
@@ -53,12 +51,6 @@ function install_haproxy {
     service haproxy restart
 }
 
-# clone_all_aai_repos() - Function that clones AAI source repo.
-function clone_all_aai_repos {
-    for repo in ${aai_repos[@]}; do
-        clone_repo $repo $aai_src_folder${repo#*aai}
-    done
-}
 
 # compile_aai_repos() - Function that compiles AAI source repo.
 function compile_aai_repos {
@@ -184,7 +176,7 @@ function init_aai {
     install_haproxy
 
     if [[ "$clone_repo" == "True" ]]; then
-        clone_all_aai_repos
+        clone_repos "aai"
         if [[ "$compile_repo" == "True" ]]; then
             compile_aai_repos
         fi