Fix: Update pyenv version selection 74/70574/4
authorSangwook Ha <sangwook.ha@verizon.com>
Wed, 31 Aug 2022 06:54:49 +0000 (23:54 -0700)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 31 Aug 2022 10:36:49 +0000 (20:36 +1000)
commitf0aba8bb5ffd86b4bd9f9e36f7d36d1ff9531983
tree5d191360178d40200c160824a065b7c782cd22fa
parent53a8bdfd0f05f7d29ac34a44496efb2ed081250f
Fix: Update pyenv version selection

lf-pyver() fails to include the currently selected version in the output
of 'pyenv versions', which makes the version change every time the local
version is set by pyenv with the version from lf-pyver().

Fix the command to extract the list of Python versions to include all
the numeric versions in the list.

Issue-ID: RELENG-4403
Change-Id: I8eb1a1842a9ccd7514f096ec6989559a5526c3b6
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jenkins-init-scripts/lf-env.sh
releasenotes/notes/fix-lf-pyver-regex-ad607c8c93d11bfb.yaml [new file with mode: 0644]