Skip to content

Commit

Permalink
fix(device): sets device labels correctly (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain authored Jul 3, 2024
1 parent e8d553b commit a3ac73d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions riocli/device/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def create_object(self, client: Client, **kwargs) -> v1Device:
hwil_response = create_hwil_device(self.spec, self.metadata)

# Generate labels to store HWIL metadata in rapyuta.io device.
l = make_device_labels_from_hwil_device(hwil_response)
self.metadata.get('labels', {}).update(l)
labels = make_device_labels_from_hwil_device(hwil_response)
labels.update(self.metadata.get('labels', {}))
self.metadata.labels = labels

# Create the rapyuta.io device.
device = client.create_device(self.to_v1())
Expand Down

0 comments on commit a3ac73d

Please sign in to comment.