From eca5ce61b0037f6f29b25076a86ff8b81fe6f85c Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Fri, 6 Mar 2020 14:50:33 +0100 Subject: [PATCH] Remove unused check_get_module function The check_get_module is not needed anymore. Change-Id: I191fc04c8d56b34948118828315574a47375eb34 --- scripts/env-setup.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scripts/env-setup.sh b/scripts/env-setup.sh index fe7c515b8..c9b317410 100755 --- a/scripts/env-setup.sh +++ b/scripts/env-setup.sh @@ -20,17 +20,6 @@ fi PLAYBOOKS_LIBRARY_PATH=$(dirname $0)/../playbooks/library - -# NOTE(TheJulia): This should no longer be needed, and was for used to -# collect modules from Github where necessary for older ansible versions, -# but we should have everything we need with stable-2.6 or later. -function check_get_module () { - local module=${1} - local module_url_base=${2} - ${ANSIBLE} localhost -m ${module} | grep "changed" || \ - wget "${module_url_base}/${module}.py" -O "${PLAYBOOKS_LIBRARY_PATH}/${module}.py" -} - # NOTE(pas-ha) the following is a temporary workaround for third-party CI # scripts that try to source Ansible's hacking/env-setup # after running this very script