server: fix cluster any label

This commit is contained in:
Koushik Dutta
2024-11-13 18:10:59 -08:00
parent f245fb257d
commit 4ff00a7753
5 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{
"scrypted.debugHost": "127.0.0.1",
"scrypted.debugHost": "scrypted-nvr",
"python.analysis.extraPaths": [
"./node_modules/@scrypted/sdk/types/scrypted_python"
]

View File

@@ -40,8 +40,7 @@
],
"labels": {
"require": [
"darwin",
"arm64"
"darwin"
]
}
},

View File

@@ -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",

View File

@@ -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": {

View File

@@ -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;
}