mirror of
https://github.com/koush/scrypted.git
synced 2026-06-21 00:50:30 +01:00
server: fix cluster any label
This commit is contained in:
2
plugins/coreml/.vscode/settings.json
vendored
2
plugins/coreml/.vscode/settings.json
vendored
@@ -1,6 +1,6 @@
|
||||
|
||||
{
|
||||
"scrypted.debugHost": "127.0.0.1",
|
||||
"scrypted.debugHost": "scrypted-nvr",
|
||||
"python.analysis.extraPaths": [
|
||||
"./node_modules/@scrypted/sdk/types/scrypted_python"
|
||||
]
|
||||
|
||||
@@ -40,8 +40,7 @@
|
||||
],
|
||||
"labels": {
|
||||
"require": [
|
||||
"darwin",
|
||||
"arm64"
|
||||
"darwin"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
3
server/.vscode/launch.json
vendored
3
server/.vscode/launch.json
vendored
@@ -96,7 +96,8 @@
|
||||
"env": {
|
||||
"SCRYPTED_CLUSTER_LABELS": "compute",
|
||||
"SCRYPTED_CLUSTER_MODE": "client",
|
||||
"SCRYPTED_CLUSTER_SERVER": "192.168.2.124",
|
||||
"SCRYPTED_CLUSTER_SERVER": "192.168.2.130",
|
||||
"SCRYPTED_CLUSTER_ADDRESS": "192.168.2.124",
|
||||
"SCRYPTED_CLUSTER_SECRET": "swordfish",
|
||||
"SCRYPTED_CAN_RESTART": "true",
|
||||
"SCRYPTED_VOLUME": "/Users/koush/.scrypted-cluster/volume-client",
|
||||
|
||||
4
server/package-lock.json
generated
4
server/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/server",
|
||||
"version": "0.123.4",
|
||||
"version": "0.123.5",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/server",
|
||||
"version": "0.123.4",
|
||||
"version": "0.123.5",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
||||
@@ -129,7 +129,7 @@ export function matchesClusterLabels(options: ClusterForkOptions, labels: string
|
||||
// if there is nothing in the any list, consider it matched
|
||||
let foundAny = !options?.labels?.any?.length;
|
||||
for (const label of options.labels?.any || []) {
|
||||
if (!labels.includes(label)) {
|
||||
if (labels.includes(label)) {
|
||||
matched++;
|
||||
foundAny = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user