Revert "Fix: Remove "--python" flag from venv act" 57/70057/1 v0.76.2
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 20 Apr 2022 23:56:25 +0000 (09:56 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 20 Apr 2022 23:59:10 +0000 (09:59 +1000)
This reverts commit 18d90a9e0b74515b6aa2ac8fc4a17b9d98a7680e.

The issue does not happen on C7/C8 but mostly on Ubuntu and
needs to be addressed elsewhere.

Change-Id: I54abbea2550ed6d80e3c7d75ab86d246c0ec98d2
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-venv-call-79fd4ca9c570a7b4.yaml [deleted file]
shell/capture-instance-metadata.sh

diff --git a/releasenotes/notes/fix-venv-call-79fd4ca9c570a7b4.yaml b/releasenotes/notes/fix-venv-call-79fd4ca9c570a7b4.yaml
deleted file mode 100644 (file)
index e5dca74..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
----
-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 57a4e8d..0648d1d 100644 (file)
@@ -14,7 +14,7 @@ echo "---> capture-instance-metadata.sh"
 # shellcheck disable=SC1090
 source ~/lf-env.sh
 
-lf-activate-venv python3.8 lftools
+lf-activate-venv --python python3.8 lftools
 
 # detect if we're in EC2
 if [ -n "${NOMAD_DC}" ]; then