Skip to content

Commit

Permalink
* [apiclient] fix bug in volume model
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 authored and khushboo-rancher committed Jul 22, 2024
1 parent e1fbcfd commit 3c32cdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apiclient/harvester_api/models/volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def to_dict(self, name, namespace, image_id=None):

if image_id is not None:
annotations.update({"harvesterhci.io/imageId": image_id})
self.storage_cls = f"longhorn-{image_id.split('/')[1]}"
if self.description is not None:
annotations.update({"field.cattle.io/description": self.description})
if self.storage_cls is not None:
Expand Down

0 comments on commit 3c32cdb

Please sign in to comment.