Merge "Feat: Append build result to cost file" v0.76.0
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 13 Apr 2022 23:07:30 +0000 (23:07 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Wed, 13 Apr 2022 23:07:30 +0000 (23:07 +0000)
releasenotes/notes/enable-virtual-env-a799923d70578489.yaml [new file with mode: 0644]
shell/capture-instance-metadata.sh

diff --git a/releasenotes/notes/enable-virtual-env-a799923d70578489.yaml b/releasenotes/notes/enable-virtual-env-a799923d70578489.yaml
new file mode 100644 (file)
index 0000000..f3d6337
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Activate the virtual environment. Python may not be available by default
+    on all versions.
index 0998dd1..0648d1d 100644 (file)
 
 echo "---> capture-instance-metadata.sh"
 
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv --python python3.8 lftools
+
 # detect if we're in EC2
 if [ -n "${NOMAD_DC}" ]; then
     echo "INFO: Running in Nomad, no metadata"