summaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-20 09:29:05 +0300
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-06-20 09:29:05 +0300
commit2860cd0ee42a205ea3c565c9953ff15bd79fcc25 (patch)
tree67e62de697ffb18fa1cd50c87a227ee1305bf653 /kud/hosting_providers
parent76acfa887ed36697e2ddff52f2fc84ee3fcf6c72 (diff)
Unify resolving current directory in KUD scripts
Issue-ID: MULTICLOUD-685 Change-Id: I62199f64da360627a13c467139a39430ae389167 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'kud/hosting_providers')
-rwxr-xr-xkud/hosting_providers/baremetal/aio.sh2
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/kud/hosting_providers/baremetal/aio.sh b/kud/hosting_providers/baremetal/aio.sh
index c9903cd3..c1aac6ac 100755
--- a/kud/hosting_providers/baremetal/aio.sh
+++ b/kud/hosting_providers/baremetal/aio.sh
@@ -12,7 +12,7 @@ set -o errexit
set -o nounset
set -o pipefail
-aio_dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
+aio_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
cd ${aio_dir}/../vagrant
# For aio inventory by default get ovn central ip from local host default interface.
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh
index ca14bad7..f93839d2 100755
--- a/kud/hosting_providers/vagrant/installer.sh
+++ b/kud/hosting_providers/vagrant/installer.sh
@@ -12,7 +12,7 @@ set -o errexit
set -o nounset
set -o pipefail
-INSTALLER_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
+INSTALLER_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
source ${INSTALLER_DIR}/../../tests/_functions.sh