From: Victor Morales Date: Mon, 22 Oct 2018 15:40:21 +0000 (-0700) Subject: Fix non-existing all.yml file X-Git-Tag: 3.0.0-ONAP~10 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=7ccc899a3181a5370962fcdbe2ea743afb734976;p=multicloud%2Fk8s.git Fix non-existing all.yml file The all.yml file contains global configuration used by kubespray. During the initial execution this file doesn't exist and its execution can raise an error. This change fix that scenario. Change-Id: I1f0c0134ccbc439b6a6c3e26c993cf498bb8dbf8 Signed-off-by: Victor Morales Issue-ID: MULTICLOUD-301 --- diff --git a/vagrant/installer.sh b/vagrant/installer.sh index 30683cb0..5fdcaeb5 100755 --- a/vagrant/installer.sh +++ b/vagrant/installer.sh @@ -123,7 +123,7 @@ function install_k8s { pushd $dest_folder/kubespray-$version pip install -r requirements.txt - rm -f $krd_inventory_folder/group_vars/all.yml + rm -f $krd_inventory_folder/group_vars/all.yml 2> /dev/null if [[ -n "${verbose+x}" ]]; then echo "kube_log_level: 5" >> $krd_inventory_folder/group_vars/all.yml else