From beb9d6554ce75eb1506b2dff4f025832464eaadf Mon Sep 17 00:00:00 2001 From: Carlos Date: Wed, 4 Sep 2024 17:41:26 +0100 Subject: [PATCH] sgx: check env. var safely (#92) --- README.md | 2 +- faasmctl/util/compose.py | 2 +- faasmctl/util/version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba64ddc..5386cc4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ running [Faasm](https://github.com/faasm/faasm) cluster. To install `faasmctl` you need a working `pip` (virtual-)environment. Then: ```bash -pip install faasmctl==0.46.0 +pip install faasmctl==0.46.1 ``` ## Usage diff --git a/faasmctl/util/compose.py b/faasmctl/util/compose.py index abd2f29..932a58b 100644 --- a/faasmctl/util/compose.py +++ b/faasmctl/util/compose.py @@ -155,7 +155,7 @@ def deploy_compose_cluster(faasm_checkout, workers, mount_source, ini_file): # In a compose cluster with SGX in HW mode, we need to manually set-up # the AESMD volume and socket for remote attestation (in a k8s deployment # on AKS, this is done automatically for us) - must_start_sgx_aesmd = env["FAASM_WASM_VM"] == "sgx" + must_start_sgx_aesmd = "FAASM_WASM_VM" in env and env["FAASM_WASM_VM"] == "sgx" if must_start_sgx_aesmd: docker_cmd = [ diff --git a/faasmctl/util/version.py b/faasmctl/util/version.py index efa2460..c3edc97 100644 --- a/faasmctl/util/version.py +++ b/faasmctl/util/version.py @@ -1,4 +1,4 @@ -FAASMCTL_VERSION = "0.46.0" +FAASMCTL_VERSION = "0.46.1" def get_version(): diff --git a/pyproject.toml b/pyproject.toml index 8d957ac..b30703c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "faasmctl" -version = "0.46.0" +version = "0.46.1" authors = [ { name="Faasm Team", email="foo@bar.com" }, ]