Fix: Remove "--python" flag from venv activation 40/70040/3 v0.76.1
authorEric Ball <eball@linuxfoundation.org>
Tue, 19 Apr 2022 15:55:59 +0000 (08:55 -0700)
committerEric Ball <eball@linuxfoundation.org>
Wed, 20 Apr 2022 21:15:06 +0000 (14:15 -0700)
Remove "--python" flag from lf-activate-venv call in
capture-instance-metadata. This forces the system to use Python 2,
which is not available on newer systems, and is causing failures.

Change-Id: I456a1463885b6269b555edbd587c9cfc039c78da
Issue: RELENG-4192
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
releasenotes/notes/fix-venv-call-79fd4ca9c570a7b4.yaml [new file with mode: 0644]
shell/capture-instance-metadata.sh

diff --git a/releasenotes/notes/fix-venv-call-79fd4ca9c570a7b4.yaml b/releasenotes/notes/fix-venv-call-79fd4ca9c570a7b4.yaml
new file mode 100644 (file)
index 0000000..e5dca74
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Remove "--python" flag from lf-activate-venv call in capture-instance-metadata.
+    This forces the system to use Python 2, which is not available on newer
+    systems, and is causing failures.
index 0648d1d..57a4e8d 100644 (file)
@@ -14,7 +14,7 @@ echo "---> capture-instance-metadata.sh"
 # shellcheck disable=SC1090
 source ~/lf-env.sh
 
-lf-activate-venv --python python3.8 lftools
+lf-activate-venv python3.8 lftools
 
 # detect if we're in EC2
 if [ -n "${NOMAD_DC}" ]; then