From 7181946bada55536dce373a077aacd351f13264f Mon Sep 17 00:00:00 2001 From: Paul Barsic Date: Fri, 9 Jun 2023 01:56:22 -0700 Subject: [PATCH] Error while enabling SAM on CPU (#6249) This PR solves issue #6247 "Error while enabling SAM on CPU". It looks like the `--file` argument to `nuctl deploy` was inadvertently removed in the most recent release. This causes the process to fail with `**Error - Function name cannot be empty`. I was able to reproduce this error on my own system. ### Motivation and context This change fixes a minor error. ### How has this been tested? I tested this by reproducing the bug with the command from the `cvat/components` directory: `nuctl deploy --project-name cvat --path "./serverless/pytorch/foolwood/siammask/nuclio" --platform local` I then edited the `deploy_cpu.sh` file, executed the same command, and completed a successful deployment, which I verified with `nuctl get functions`. --- serverless/deploy_cpu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serverless/deploy_cpu.sh b/serverless/deploy_cpu.sh index 8fc1dacc4..03d6f17ba 100755 --- a/serverless/deploy_cpu.sh +++ b/serverless/deploy_cpu.sh @@ -24,7 +24,8 @@ do fi echo "Deploying $func_rel_path function..." - nuctl deploy --project-name cvat --path "$func_root" --platform local + nuctl deploy --project-name cvat --path "$func_root" \ + --file "$func_config" --platform local done nuctl get function --platform local -- GitLab