Skip to content

Commit 226093c

Browse files
committed
deprecate require_devices
1 parent d7d1753 commit 226093c

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

internal/orchestrator/bricks/testdata/bricks-list.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ bricks:
44
description: Connects to Arduino Cloud
55
require_container: false
66
require_model: false
7-
require_devices: false
87
mount_devices_into_container: false
98
ports: []
109
category: null
@@ -19,7 +18,6 @@ bricks:
1918
local database.
2019
require_container: false
2120
require_model: false
22-
require_devices: false
2321
mount_devices_into_container: false
2422
ports: []
2523
category: storage

internal/orchestrator/bricksindex/bricks_index_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ func TestBricksIndexYAMLFormats(t *testing.T) {
148148
category: storage
149149
require_container: true
150150
require_model: true
151-
require_devices: false
152151
mount_devices_into_container: true
153152
model_name: a-complex-model
154153
required_devices:

internal/orchestrator/orchestrator_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ bricks:
447447
\ or with custom object detection models trained on Edge Impulse platform. \n"
448448
require_container: true
449449
require_model: true
450-
require_devices: false
451450
ports: []
452451
category: video
453452
model_name: yolox-object-detection
@@ -533,7 +532,6 @@ bricks:
533532
\ or with custom object detection models trained on Edge Impulse platform. \n"
534533
require_container: true
535534
require_model: true
536-
require_devices: false
537535
category: video
538536
model_name: yolox-object-detection
539537
variables:

internal/orchestrator/provision.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func generateMainComposeFile(
257257
}
258258

259259
// 4. Retrieve the required devices that we have to mount
260-
slog.Debug("Brick config", slog.Bool("require_devices", idxBrick.MountDevicesIntoContainer), slog.Any("ports", ports), slog.Any("required_devices", idxBrick.RequiredDevices))
260+
slog.Debug("Brick config", slog.Bool("mount_devices_into_container", idxBrick.MountDevicesIntoContainer), slog.Any("ports", ports), slog.Any("required_devices", idxBrick.RequiredDevices))
261261
if idxBrick.MountDevicesIntoContainer {
262262
servicesThatRequireDevices = slices.AppendSeq(servicesThatRequireDevices, maps.Keys(svcs))
263263
}

0 commit comments

Comments
 (0)