Allow to run airship cli from any directory
Change path to globals from relative to absolute to be able to run airship cli from any directory. Change-Id: Ieb81ef6be7dff7fd49c206501035e75c8fd32bbe
This commit is contained in:
parent
d63ff89d60
commit
6b1cc1ad76
@ -26,6 +26,8 @@ OS_USER_DOMAIN_NAME=${OS_USER_DOMAIN_NAME:-'default'}
|
|||||||
OS_IDENTITY_API_VERSION=${OS_IDENTITY_API_VERSION:-'3'}
|
OS_IDENTITY_API_VERSION=${OS_IDENTITY_API_VERSION:-'3'}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
|
|
||||||
# Key/value lookups from manifests
|
# Key/value lookups from manifests
|
||||||
manifests_lookup(){
|
manifests_lookup(){
|
||||||
@ -69,7 +71,7 @@ else:
|
|||||||
}
|
}
|
||||||
|
|
||||||
versions_lookup() {
|
versions_lookup() {
|
||||||
manifests_lookup 'global/software/config/versions.yaml' \
|
manifests_lookup "${REPO_DIR}/global/software/config/versions.yaml" \
|
||||||
'pegleg/SoftwareVersions/v1' \
|
'pegleg/SoftwareVersions/v1' \
|
||||||
'software-versions' "$1"
|
'software-versions' "$1"
|
||||||
IMAGE_URL=$RESULT
|
IMAGE_URL=$RESULT
|
||||||
|
Loading…
Reference in New Issue
Block a user