Skip to content

Commit

Permalink
sgx: check env. var safely (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Sep 4, 2024
1 parent 20dab25 commit beb9d65
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion faasmctl/util/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion faasmctl/util/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FAASMCTL_VERSION = "0.46.0"
FAASMCTL_VERSION = "0.46.1"


def get_version():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]" },
]
Expand Down

0 comments on commit beb9d65

Please sign in to comment.