Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def handle(self, *args, **options):
"resource_type": STORAGE_RESOURCE_TYPE_NAME,
"invoice_name": OPENSTACK_STORAGE_INVOICE_NAME,
},
{
"display_name": attributes.QUOTA_GPU,
"quota_label": "internal.gpu_quota",
Comment thread
knikolla marked this conversation as resolved.
Outdated
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new quota entry omits fields (e.g. multiplier, static_quota, unit_suffix) that every other default quota passes through to add_quota_to_resource. For consistency and to avoid depending on implicit defaults/CLI optionality, set them explicitly (likely multiplier: 0, static_quota: 0, unit_suffix: ""). Also, the unit test for register_default_quotas asserts the exact set of OpenStack default quota keys and will need to include attributes.QUOTA_GPU once this is added.

Suggested change
"quota_label": "internal.gpu_quota",
"quota_label": "internal.gpu_quota",
"multiplier": 0,
"static_quota": 0,
"unit_suffix": "",

Copilot uses AI. Check for mistakes.
},
]

# Find OpenShift resources
Expand Down
Loading