Skip to content

Commit 0aaf512

Browse files
committed
get rid of basedir stuff
1 parent e958418 commit 0aaf512

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

cc-ansible

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -273,25 +273,12 @@ if [[ -f "$CC_ANSIBLE_ENV" ]]; then
273273
set -a; source "$(realpath "$CC_ANSIBLE_ENV")"; set +a
274274
fi
275275

276-
find_kolla_ansible_base_dir () {
277-
kolla_direct_url="$(find ${VIRTUAL_ENV}/lib/ -wholename '*kolla_ansible*.dist-info/direct_url.json' -print -quit)"
278-
if test -n "${kolla_direct_url}"; then
279-
# Editable install in local path
280-
direct_url="$(yq eval '.url' ${kolla_direct_url})"
281-
BASEDIR="${direct_url#file:\/\/}"
282-
else
283-
BASEDIR="${VIRTUAL_ENV}/share/kolla-ansible"
284-
fi
285-
echo "${BASEDIR}/ansible"
286-
}
287-
288276
# Handle subcommands
289277
if [[ -n "${command:-}" ]]; then
290278
$command "$@"
291279
exit $?
292280
fi
293281

294-
ansible_path="$(find_kolla_ansible_base_dir)"
295282
if [[ -n "${CC_ANSIBLE_PLAYBOOK:-}" ]]; then
296283
echo "**********************************************************************"
297284
echo "* Playbook override detected! This playbook will be executed within *"

0 commit comments

Comments
 (0)