+if [[ ! -f /run/cloud-init/result.json && ! -f stack-cost ]]; then
+ # Don't attempt to calculate job cost as build is not running in a
+ # cloud environment
+ echo "INFO: Skipping job cost calculation"
+ exit 0
+fi
+
+# AWS job cost not supported, exit
+cloudtype="$(jq -r .v1.datasource /run/cloud-init/result.json)"
+if [[ $cloudtype == "DataSourceEc2Local" ]]; then
+ echo "INFO: Not able to calculate job cost on AWS"
+ exit 0
+fi
+
+lf-activate-venv zipp==1.1.0 python-openstackclient urllib3~=1.26.15