Skip to content

Commit 7181946

Browse files
author
Paul Barsic
authored
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`.
1 parent e5ea213 commit 7181946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

serverless/deploy_cpu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ do
2424
fi
2525

2626
echo "Deploying $func_rel_path function..."
27-
nuctl deploy --project-name cvat --path "$func_root" --platform local
27+
nuctl deploy --project-name cvat --path "$func_root" \
28+
--file "$func_config" --platform local
2829
done
2930

3031
nuctl get function --platform local

0 commit comments

Comments
 (0)