X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-stack-copy-ssh-keys.sh;h=f20e1d91b961037c4ea848c4453a71fdd22c9279;hb=refs%2Fheads%2Fmaster;hp=0509bb8f32160b55c643601aae56e108783b3c67;hpb=a8c7722c19cfca9f0361c578ce63bf552093dd0e;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-stack-copy-ssh-keys.sh b/shell/openstack-stack-copy-ssh-keys.sh index 0509bb8f..f20e1d91 100644 --- a/shell/openstack-stack-copy-ssh-keys.sh +++ b/shell/openstack-stack-copy-ssh-keys.sh @@ -53,19 +53,10 @@ copy_ssh_keys () { # shellcheck disable=SC1090 source ~/lf-env.sh -# Check if openstack venv was previously created -if [ -f "/tmp/.os_lf_venv" ]; then - os_lf_venv=$(cat "/tmp/.os_lf_venv") -fi - -if [ -d "${os_lf_venv}" ] && [ -f "${os_lf_venv}/bin/openstack" ]; then - echo "Re-use existing venv: ${os_lf_venv}" - PATH=$os_lf_venv/bin:$PATH -else - lf-activate-venv --python python3 \ - python-heatclient \ - python-openstackclient -fi +lf-activate-venv --python python3 "lftools[openstack]" \ + kubernetes \ + python-heatclient \ + python-openstackclient # IP Addresses are returned as a space separated list so word splitting is ok # shellcheck disable=SC2207