From cec92fd5ffd241f79e4147fd2c55361e24ba674b Mon Sep 17 00:00:00 2001 From: Carlos Segarra Date: Thu, 14 Mar 2024 11:01:56 +0000 Subject: [PATCH] deploy(compose): fix deployment with zero workers --- 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 625c5b8..9fa3863 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.33.0 +pip install faasmctl==0.33.1 ``` ## Usage diff --git a/faasmctl/util/compose.py b/faasmctl/util/compose.py index 016be6a..1e18f81 100644 --- a/faasmctl/util/compose.py +++ b/faasmctl/util/compose.py @@ -126,7 +126,7 @@ def deploy_compose_cluster(faasm_checkout, workers, mount_source, ini_file): # Deploy the compose cluster (0 workers <=> cli-only cluster) cmd = [ "docker compose up -d", - "--scale worker={}".format(workers), + "--scale worker={}".format(workers) if int(workers) > 0 else "", "worker" if int(workers) > 0 else "faasm-cli", ] cmd = " ".join(cmd) diff --git a/faasmctl/util/version.py b/faasmctl/util/version.py index 5cd53a4..e3d4c5d 100644 --- a/faasmctl/util/version.py +++ b/faasmctl/util/version.py @@ -1,4 +1,4 @@ -FAASMCTL_VERSION = "0.33.0" +FAASMCTL_VERSION = "0.33.1" def get_version(): diff --git a/pyproject.toml b/pyproject.toml index 3e6e9e0..c85dfc2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "faasmctl" -version = "0.33.0" +version = "0.33.1" authors = [ { name="Faasm Team", email="foo@bar.com" }, ]