Skip to content

Commit 34f83ec

Browse files
committed
Change directory before running Kayobe commands
1 parent 68a34ce commit 34f83ec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

functions

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ function run_kayobe {
679679
kayobe_limit=(--limit "$KAYOBE_LIMIT")
680680
fi
681681

682+
# Prevent Kayobe from complaining that you are running from
683+
# a repository that is not $KAYOBE_CONFIG_PATH
684+
cd $KAYOBE_CONFIG_PATH
685+
682686
kayobe "${@}" "${kayobe_limit[@]}" "${kayobe_tags[@]}" "${kolla_limit[@]}" "${kolla_tags[@]}" ${KAYOBE_EXTRA_ARGS}
683687
}
684688

scripts/config-diff.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ function generate_config {
205205

206206
export KAYOBE_VAULT_PASSWORD=dummy-password
207207

208+
# Prevent Kayobe from complaining that you are running from
209+
# a repository that is not $KAYOBE_CONFIG_PATH
210+
cd $KAYOBE_CONFIG_PATH
208211
kayobe control host bootstrap
209212
log_info "Generating config to $output_dir"
210213
kayobe playbook run "$kayobe_ansible_path/kayobe-automation-prepare-config-diff.yml"

0 commit comments

Comments
 (0)