diff --git a/server/docker/main.py b/server/docker/main.py index bf8bcbd4b..c00e68993 100644 --- a/server/docker/main.py +++ b/server/docker/main.py @@ -131,7 +131,7 @@ def get_image_tag(self, registry_url, registry_dir, role_dockerfile): registry_url, registry_dir, "-".join(filter(lambda d: d != "", [self.role_name, role_dockerfile.name.replace("Dockerfile", "").lower()]))) image_version = self.args.tag if self.args.tag else self.role_env.get("param_role_image_version") - return image_tag + ":" + image_version if image_version else "latest" + return image_tag + ":" + (image_version if image_version else "latest") def delete(self) -> list[str]: _cmds = []